diff options
Diffstat (limited to 'server/models/application.js')
-rw-r--r-- | server/models/application.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/models/application.js b/server/models/application.js index 4114ed76d..46dcfde33 100644 --- a/server/models/application.js +++ b/server/models/application.js | |||
@@ -1,9 +1,15 @@ | |||
1 | 'use strict' | ||
2 | |||
1 | module.exports = function (sequelize, DataTypes) { | 3 | module.exports = function (sequelize, DataTypes) { |
2 | const Application = sequelize.define('Application', | 4 | const Application = sequelize.define('Application', |
3 | { | 5 | { |
4 | migrationVersion: { | 6 | migrationVersion: { |
5 | type: DataTypes.INTEGER, | 7 | type: DataTypes.INTEGER, |
6 | defaultValue: 0 | 8 | defaultValue: 0, |
9 | allowNull: false, | ||
10 | validate: { | ||
11 | isInt: true | ||
12 | } | ||
7 | } | 13 | } |
8 | }, | 14 | }, |
9 | { | 15 | { |