summaryrefslogtreecommitdiff
path: root/packages/backend/migration
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2024-09-28 18:15:32 +0900
committerGitHub <noreply@github.com>2024-09-28 18:15:32 +0900
commitf0d0cd2e5042fb30cf3ef1c2717540391ee97aac (patch)
tree13fd1980e127ac4f762ea7a9e6d4bf73fac8a888 /packages/backend/migration
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadmisskey-f0d0cd2e5042fb30cf3ef1c2717540391ee97aac.tar.gz
misskey-f0d0cd2e5042fb30cf3ef1c2717540391ee97aac.tar.bz2
misskey-f0d0cd2e5042fb30cf3ef1c2717540391ee97aac.zip
wip (#14643)
Diffstat (limited to 'packages/backend/migration')
-rw-r--r--packages/backend/migration/1727512908322-meta-federation.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/backend/migration/1727512908322-meta-federation.js b/packages/backend/migration/1727512908322-meta-federation.js
new file mode 100644
index 0000000000..52c24df4f7
--- /dev/null
+++ b/packages/backend/migration/1727512908322-meta-federation.js
@@ -0,0 +1,18 @@
+/*
+ * SPDX-FileCopyrightText: syuilo and misskey-project
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+export class MetaFederation1727512908322 {
+ name = 'MetaFederation1727512908322'
+
+ async up(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "meta" ADD "federation" character varying(128) NOT NULL DEFAULT 'all'`);
+ await queryRunner.query(`ALTER TABLE "meta" ADD "federationHosts" character varying(1024) array NOT NULL DEFAULT '{}'`);
+ }
+
+ async down(queryRunner) {
+ await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "federationHosts"`);
+ await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "federation"`);
+ }
+}