From 677ea3c084508a1c3949b9f4b3da3c21bac8ff52 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 11 Jul 2020 08:58:06 +0200 Subject: Relax migrations --- server/initializers/migrations/0520-abuses-split.ts | 7 ------- 1 file changed, 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: { await utils.sequelize.query('DROP INDEX IF EXISTS user_notification_video_abuse_id') await utils.queryInterface.renameColumn('userNotification', 'videoAbuseId', 'abuseId') - await utils.sequelize.query( - 'ALTER TABLE "userNotification" RENAME CONSTRAINT "userNotification_videoAbuseId_fkey" TO "userNotification_abuseId_fkey"' - ) - - await utils.sequelize.query( - 'ALTER TABLE "abuse" RENAME CONSTRAINT "videoAbuse_reporterAccountId_fkey" TO "abuse_reporterAccountId_fkey"' - ) await utils.sequelize.query( 'ALTER INDEX IF EXISTS "videoAbuse_pkey" RENAME TO "abuse_pkey"' -- cgit v1.2.3