diff options
Diffstat (limited to 'server/initializers/migrations/0040-video-nsfw.ts')
-rw-r--r-- | server/initializers/migrations/0040-video-nsfw.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/migrations/0040-video-nsfw.ts b/server/initializers/migrations/0040-video-nsfw.ts index 0460e661d..f7f70d3c4 100644 --- a/server/initializers/migrations/0040-video-nsfw.ts +++ b/server/initializers/migrations/0040-video-nsfw.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | import * as Promise from 'bluebird' | 2 | import * as Promise from 'bluebird' |
3 | import { Migration } from '../../models/migrations' | ||
3 | 4 | ||
4 | function up (utils: { | 5 | function up (utils: { |
5 | transaction: Sequelize.Transaction, | 6 | transaction: Sequelize.Transaction, |
@@ -12,7 +13,7 @@ function up (utils: { | |||
12 | type: Sequelize.BOOLEAN, | 13 | type: Sequelize.BOOLEAN, |
13 | allowNull: false, | 14 | allowNull: false, |
14 | defaultValue: false | 15 | defaultValue: false |
15 | } | 16 | } as Migration.Boolean |
16 | 17 | ||
17 | return q.addColumn('Videos', 'nsfw', data) | 18 | return q.addColumn('Videos', 'nsfw', data) |
18 | .then(() => { | 19 | .then(() => { |