aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0040-video-nsfw.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/migrations/0040-video-nsfw.ts')
-rw-r--r--server/initializers/migrations/0040-video-nsfw.ts32
1 files changed, 0 insertions, 32 deletions
diff --git a/server/initializers/migrations/0040-video-nsfw.ts b/server/initializers/migrations/0040-video-nsfw.ts
deleted file mode 100644
index d5aad3e53..000000000
--- a/server/initializers/migrations/0040-video-nsfw.ts
+++ /dev/null
@@ -1,32 +0,0 @@
1import * as Sequelize from 'sequelize'
2import { Migration } from '../../models/migrations'
3
4function up (utils: {
5 transaction: Sequelize.Transaction
6 queryInterface: Sequelize.QueryInterface
7 sequelize: Sequelize.Sequelize
8}): Promise<void> {
9 const q = utils.queryInterface
10
11 const data = {
12 type: Sequelize.BOOLEAN,
13 allowNull: false,
14 defaultValue: false
15 } as Migration.Boolean
16
17 return q.addColumn('Videos', 'nsfw', data)
18 .then(() => {
19 data.defaultValue = null
20
21 return q.changeColumn('Videos', 'nsfw', data)
22 })
23}
24
25function down (options) {
26 throw new Error('Not implemented.')
27}
28
29export {
30 up,
31 down
32}