summaryrefslogtreecommitdiff
path: root/packages/backend
diff options
context:
space:
mode:
authoranatawa12 <anatawa12@icloud.com>2025-10-19 11:34:34 +0900
committerGitHub <noreply@github.com>2025-10-19 11:34:34 +0900
commit44930342a80fec860f1ca843a3d429e46267e030 (patch)
treeee7f5e29d736db3e44fb6197c37e05ecb5f4058b /packages/backend
parentenhance: リモートユーザーのロールバッジを表示するかど... (diff)
downloadmisskey-44930342a80fec860f1ca843a3d429e46267e030.tar.gz
misskey-44930342a80fec860f1ca843a3d429e46267e030.tar.bz2
misskey-44930342a80fec860f1ca843a3d429e46267e030.zip
Revert typeorm patches (#16664)
* chore: remove patches * chore: remove unnecessary 'DEFAULT NULL's * chore: add patches with .gitkeep
Diffstat (limited to 'packages/backend')
-rw-r--r--packages/backend/migration/1760790899857-unnecessary-null-default.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/backend/migration/1760790899857-unnecessary-null-default.js b/packages/backend/migration/1760790899857-unnecessary-null-default.js
new file mode 100644
index 0000000000..d34758315f
--- /dev/null
+++ b/packages/backend/migration/1760790899857-unnecessary-null-default.js
@@ -0,0 +1,26 @@
+/*
+ * SPDX-FileCopyrightText: syuilo and misskey-project
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+export class UnnecessaryNullDefault1760790899857 {
+ name = 'UnnecessaryNullDefault1760790899857'
+
+ /**
+ * @param {QueryRunner} queryRunner
+ */
+ async up(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "abuse_report_notification_recipient" ALTER COLUMN "userId" DROP DEFAULT`);
+ await queryRunner.query(`ALTER TABLE "abuse_report_notification_recipient" ALTER COLUMN "systemWebhookId" DROP DEFAULT`);
+ await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "urlPreviewUserAgent" DROP DEFAULT`);
+ }
+
+ /**
+ * @param {QueryRunner} queryRunner
+ */
+ async down(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "urlPreviewUserAgent" SET DEFAULT NULL`);
+ await queryRunner.query(`ALTER TABLE "abuse_report_notification_recipient" ALTER COLUMN "systemWebhookId" SET DEFAULT NULL`);
+ await queryRunner.query(`ALTER TABLE "abuse_report_notification_recipient" ALTER COLUMN "userId" SET DEFAULT NULL`);
+ }
+}