From 06d6a023df177effb6ef7ee4165f4cc5c8876916 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 7 Apr 2017 18:04:39 +0200 Subject: hotfix after autogeneration --- models/asset.js | 3 +-- models/match.js | 3 +-- models/participant.js | 3 +-- models/player_point.js | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'models') diff --git a/models/asset.js b/models/asset.js index 291dfb7..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.fn('NOW') + allowNull: false }, description: { type: DataTypes.STRING(191), diff --git a/models/match.js b/models/match.js index d17d769..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.fn('NOW') + allowNull: false }, duration: { type: DataTypes.INTEGER(5).UNSIGNED, diff --git a/models/participant.js b/models/participant.js index 050d1af..c477046 100644 --- a/models/participant.js +++ b/models/participant.js @@ -31,8 +31,7 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false, - defaultValue: sequelize.fn('NOW') + allowNull: false }, actor: { type: DataTypes.STRING(16), diff --git a/models/player_point.js b/models/player_point.js index 4304c07..3153193 100644 --- a/models/player_point.js +++ b/models/player_point.js @@ -58,8 +58,7 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false, - defaultValue: sequelize.fn('NOW') + allowNull: false }, kills: { type: DataTypes.INTEGER(5).UNSIGNED, -- cgit v1.3.1