diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-11 08:58:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-07-11 08:58:06 +0200 |
commit | 677ea3c084508a1c3949b9f4b3da3c21bac8ff52 (patch) | |
tree | c450c03322b8f46545602a61746f21973b64c7bf /server/initializers/migrations/0520-abuses-split.ts | |
parent | 17aa80ed016bafa3ccb071af3f86054033823284 (diff) | |
download | PeerTube-677ea3c084508a1c3949b9f4b3da3c21bac8ff52.tar.gz PeerTube-677ea3c084508a1c3949b9f4b3da3c21bac8ff52.tar.zst PeerTube-677ea3c084508a1c3949b9f4b3da3c21bac8ff52.zip |
Relax migrations
Diffstat (limited to 'server/initializers/migrations/0520-abuses-split.ts')
-rw-r--r-- | server/initializers/migrations/0520-abuses-split.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/server/initializers/migrations/0520-abuses-split.ts b/server/initializers/migrations/0520-abuses-split.ts index b02a21989..136d5c2b2 100644 --- a/server/initializers/migrations/0520-abuses-split.ts +++ b/server/initializers/migrations/0520-abuses-split.ts | |||
@@ -65,13 +65,6 @@ async function up (utils: { | |||
65 | 65 | ||
66 | await utils.sequelize.query('DROP INDEX IF EXISTS user_notification_video_abuse_id') | 66 | await utils.sequelize.query('DROP INDEX IF EXISTS user_notification_video_abuse_id') |
67 | await utils.queryInterface.renameColumn('userNotification', 'videoAbuseId', 'abuseId') | 67 | await utils.queryInterface.renameColumn('userNotification', 'videoAbuseId', 'abuseId') |
68 | await utils.sequelize.query( | ||
69 | 'ALTER TABLE "userNotification" RENAME CONSTRAINT "userNotification_videoAbuseId_fkey" TO "userNotification_abuseId_fkey"' | ||
70 | ) | ||
71 | |||
72 | await utils.sequelize.query( | ||
73 | 'ALTER TABLE "abuse" RENAME CONSTRAINT "videoAbuse_reporterAccountId_fkey" TO "abuse_reporterAccountId_fkey"' | ||
74 | ) | ||
75 | 68 | ||
76 | await utils.sequelize.query( | 69 | await utils.sequelize.query( |
77 | 'ALTER INDEX IF EXISTS "videoAbuse_pkey" RENAME TO "abuse_pkey"' | 70 | 'ALTER INDEX IF EXISTS "videoAbuse_pkey" RENAME TO "abuse_pkey"' |