diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 17:52:02 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 17:52:02 +0200 |
| commit | 60154a734c5a5e86f48b82db852ce87890f1c624 (patch) | |
| tree | f28e7bf204ef19141240e8c27ad534122ae360ad | |
| parent | d95b8a5f1708463715e9e86b0121089b49c362bb (diff) | |
| download | orm-release/2.0.0.tar.gz orm-release/2.0.0.zip | |
rm default timestamps, generator broke theserelease/2.0.0
| -rw-r--r-- | models/asset.js | 3 | ||||
| -rw-r--r-- | models/match.js | 3 | ||||
| -rw-r--r-- | models/participant.js | 3 |
3 files changed, 3 insertions, 6 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 f508e9b..caa8c80 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), |
