diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-05 08:38:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-05 08:38:32 +0100 |
commit | fee47735bde36d9b8d0aed6284e9e8c9f6697001 (patch) | |
tree | 3d3330a03abf147a99c9606f2d0766fd9cec9d02 /server/initializers/migrations/0450-soft-delete-video-comments.ts | |
parent | 1061c73fde3005100ead8764eacb444f240440d6 (diff) | |
download | PeerTube-fee47735bde36d9b8d0aed6284e9e8c9f6697001.tar.gz PeerTube-fee47735bde36d9b8d0aed6284e9e8c9f6697001.tar.zst PeerTube-fee47735bde36d9b8d0aed6284e9e8c9f6697001.zip |
Fix migrations
Diffstat (limited to 'server/initializers/migrations/0450-soft-delete-video-comments.ts')
-rw-r--r-- | server/initializers/migrations/0450-soft-delete-video-comments.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/server/initializers/migrations/0450-soft-delete-video-comments.ts b/server/initializers/migrations/0450-soft-delete-video-comments.ts deleted file mode 100644 index bcfb97b56..000000000 --- a/server/initializers/migrations/0450-soft-delete-video-comments.ts +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | async function up (utils: { | ||
4 | transaction: Sequelize.Transaction, | ||
5 | queryInterface: Sequelize.QueryInterface, | ||
6 | sequelize: Sequelize.Sequelize, | ||
7 | db: any | ||
8 | }): Promise<void> { | ||
9 | { | ||
10 | const data = { | ||
11 | type: Sequelize.INTEGER, | ||
12 | allowNull: true, | ||
13 | defaultValue: null | ||
14 | } | ||
15 | |||
16 | await utils.queryInterface.changeColumn('videoComment', 'accountId', data) | ||
17 | } | ||
18 | |||
19 | { | ||
20 | const data = { | ||
21 | type: Sequelize.DATE, | ||
22 | allowNull: true, | ||
23 | defaultValue: null | ||
24 | } | ||
25 | await utils.queryInterface.addColumn('videoComment', 'deletedAt', data) | ||
26 | } | ||
27 | } | ||
28 | |||
29 | function down (options) { | ||
30 | throw new Error('Not implemented.') | ||
31 | } | ||
32 | |||
33 | export { | ||
34 | up, | ||
35 | down | ||
36 | } | ||