aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/initializers/migrations/0520-abuses-split.ts7
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"'