diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 16:38:34 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 16:38:34 +0200 |
| commit | 42b2f23c2270ecd706a0d512e9f17899748ab422 (patch) | |
| tree | b1d67426c054359a5c03b34f06eee5cc58b845e7 /models | |
| parent | 59d82d6c68ae3e75c3a4d9408238c44640e587db (diff) | |
| download | shrinker-42b2f23c2270ecd706a0d512e9f17899748ab422.tar.gz shrinker-42b2f23c2270ecd706a0d512e9f17899748ab422.zip | |
implement smart batching
Diffstat (limited to 'models')
| -rw-r--r-- | models/match.js | 3 | ||||
| -rw-r--r-- | models/participant.js | 2 | ||||
| -rw-r--r-- | models/roster.js | 4 |
3 files changed, 2 insertions, 7 deletions
diff --git a/models/match.js b/models/match.js index 46c4f80..ec5bdab 100644 --- a/models/match.js +++ b/models/match.js @@ -23,8 +23,7 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false, - defaultValue: sequelize.literal('CURRENT_TIMESTAMP') + allowNull: false }, duration: { type: DataTypes.INTEGER(11), diff --git a/models/participant.js b/models/participant.js index 9bd1ff7..9c17e74 100644 --- a/models/participant.js +++ b/models/participant.js @@ -59,7 +59,7 @@ module.exports = function(sequelize, DataTypes) { }, gold: { type: DataTypes.INTEGER(11), - allowNull: false + allowNull: true }, gold_mine_captures: { type: DataTypes.INTEGER(11), diff --git a/models/roster.js b/models/roster.js index 53a4411..3848c6a 100644 --- a/models/roster.js +++ b/models/roster.js @@ -41,10 +41,6 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING(191), allowNull: false }, - team_color: { - type: DataTypes.STRING(191), - allowNull: false - }, turret_kills: { type: DataTypes.INTEGER(11), allowNull: false |
