Relax migrations

pull/2962/head
Chocobozzz 2020-07-11 08:58:06 +02:00
parent 17aa80ed01
commit 677ea3c084
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 0 additions and 7 deletions

View File

@ -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"'