Skip to content

Commit

Permalink
Relax migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Jul 11, 2020
1 parent 17aa80e commit 677ea3c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/initializers/migrations/0520-abuses-split.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
Expand Down

0 comments on commit 677ea3c

Please sign in to comment.