summaryrefslogtreecommitdiff
path: root/packages/backend/migration
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-04-08 20:50:38 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-04-08 20:50:38 +0900
commitc500e4392aac643ccf05d28effabbf41c1c37e9b (patch)
tree38fa75094b41e5a3151e9f824f049350d5078cc6 /packages/backend/migration
parentNew Crowdin updates (#15776) (diff)
downloadsharkey-c500e4392aac643ccf05d28effabbf41c1c37e9b.tar.gz
sharkey-c500e4392aac643ccf05d28effabbf41c1c37e9b.tar.bz2
sharkey-c500e4392aac643ccf05d28effabbf41c1c37e9b.zip
hideNotesInSensitiveChannel -> excludeNotesInSensitiveChannel
Diffstat (limited to 'packages/backend/migration')
-rw-r--r--packages/backend/migration/1744075766000-excludeNotesInSensitiveChannel.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/backend/migration/1744075766000-excludeNotesInSensitiveChannel.js b/packages/backend/migration/1744075766000-excludeNotesInSensitiveChannel.js
new file mode 100644
index 0000000000..1e8faafbc4
--- /dev/null
+++ b/packages/backend/migration/1744075766000-excludeNotesInSensitiveChannel.js
@@ -0,0 +1,16 @@
+/*
+ * SPDX-FileCopyrightText: syuilo and misskey-project
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+export class ExcludeNotesInSensitiveChannel1744075766000 {
+ name = 'ExcludeNotesInSensitiveChannel1744075766000'
+
+ async up(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "antenna" RENAME COLUMN "hideNotesInSensitiveChannel" TO "excludeNotesInSensitiveChannel"`);
+ }
+
+ async down(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "antenna" RENAME COLUMN "excludeNotesInSensitiveChannel" TO "hideNotesInSensitiveChannel"`);
+ }
+}