From 03a5a332ab470a9ec49960f6be391715b34dcd32 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 16 Mar 2023 18:55:48 -0700 Subject: [PATCH] fix --- CALCKEY.md | 1 + .../migration/1655793461890-thread-mute-notifications.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CALCKEY.md b/CALCKEY.md index 110aaf2644..75efeef069 100644 --- a/CALCKEY.md +++ b/CALCKEY.md @@ -154,3 +154,4 @@ - 923c93da1228458dd65be47483c198a1a9191bcf: use await for notes.countBy - ca90cedba0a0704b503c2778694230f5a7dfbace: server: reduce dead instance detection to 7 days - e9ab42c10afb4e27516c2d2b5e3e06630efe9edd: Alt text in image viewer + - 6d58d5ed3b2edcbd1296118201e3f0e2b42f8f52: Mute renotes diff --git a/packages/backend/migration/1655793461890-thread-mute-notifications.js b/packages/backend/migration/1655793461890-thread-mute-notifications.js index 89f340d5fa..59611b7e6d 100644 --- a/packages/backend/migration/1655793461890-thread-mute-notifications.js +++ b/packages/backend/migration/1655793461890-thread-mute-notifications.js @@ -2,12 +2,10 @@ export class threadMuteNotifications1655793461890 { name = 'threadMuteNotifications1655793461890' async up(queryRunner) { - await queryRunner.query(`CREATE TYPE "public"."note_thread_muting_mutingnotificationtypes_enum" AS ENUM('mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'pollEnded')`); await queryRunner.query(`ALTER TABLE "note_thread_muting" ADD "mutingNotificationTypes" "public"."note_thread_muting_mutingnotificationtypes_enum" array NOT NULL DEFAULT '{}'`); } async down(queryRunner) { await queryRunner.query(`ALTER TABLE "note_thread_muting" DROP COLUMN "mutingNotificationTypes"`); - await queryRunner.query(`DROP TYPE "public"."note_thread_muting_mutingnotificationtypes_enum"`); } }