From 418e5c253cdbc5d5171b73c221e45a1b551ceaa8 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 1 Apr 2017 13:20:30 +0200 Subject: rm default timestamps, generator broke these --- models/asset.js | 3 +-- models/match.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'models') diff --git a/models/asset.js b/models/asset.js index b55fed4..d8e676b 100644 --- a/models/asset.js +++ b/models/asset.js @@ -34,8 +34,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 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), -- cgit v1.3.1