diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 16:51:15 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 16:51:15 +0200 |
| commit | 74ec66b6b08d8635e1e983f29f870542e5a333b9 (patch) | |
| tree | 52aba2e3f97746061ec9d96ecc655373853b11f7 | |
| parent | 22afb45c9f9b13b13b5899fc5d66e98259260267 (diff) | |
| download | orm-74ec66b6b08d8635e1e983f29f870542e5a333b9.tar.gz orm-74ec66b6b08d8635e1e983f29f870542e5a333b9.zip | |
fixed broken autogen defaults
| -rw-r--r-- | models/asset.js | 3 | ||||
| -rw-r--r-- | models/match.js | 3 | ||||
| -rw-r--r-- | models/participant.js | 3 | ||||
| -rw-r--r-- | models/player_point.js | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/models/asset.js b/models/asset.js index a10c2da..ae939a0 100644 --- a/models/asset.js +++ b/models/asset.js @@ -35,8 +35,7 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false, - defaultValue: sequelize.literal('CURRENT_TIMESTAMP') + allowNull: false }, description: { type: DataTypes.STRING(191), diff --git a/models/match.js b/models/match.js index 7efd63b..0b9f6d9 100644 --- a/models/match.js +++ b/models/match.js @@ -19,8 +19,7 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false, - defaultValue: sequelize.literal('CURRENT_TIMESTAMP') + allowNull: false }, duration: { type: DataTypes.INTEGER(5).UNSIGNED, diff --git a/models/participant.js b/models/participant.js index c4be804..22381fc 100644 --- a/models/participant.js +++ b/models/participant.js @@ -51,8 +51,7 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false, - defaultValue: sequelize.literal('CURRENT_TIMESTAMP') + allowNull: false }, actor: { type: DataTypes.STRING(16), diff --git a/models/player_point.js b/models/player_point.js index 160be5a..251e043 100644 --- a/models/player_point.js +++ b/models/player_point.js @@ -50,8 +50,7 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false, - defaultValue: sequelize.literal('CURRENT_TIMESTAMP') + allowNull: false }, kills: { type: DataTypes.INTEGER(5).UNSIGNED, |
