From 024ce3c881562e6d66df4ebd1f966509e3d0d183 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sat, 4 May 2024 23:32:43 +0900 Subject: [PATCH] update --- .../1714831133155-outsideprismisskey.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/backend/migration/1714831133155-outsideprismisskey.js diff --git a/packages/backend/migration/1714831133155-outsideprismisskey.js b/packages/backend/migration/1714831133155-outsideprismisskey.js new file mode 100644 index 0000000000..0da10f603d --- /dev/null +++ b/packages/backend/migration/1714831133155-outsideprismisskey.js @@ -0,0 +1,17 @@ +export class Outsideprismisskey1714831133155 { + name = 'Outsideprismisskey1714831133155' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" ADD "bannerDark" character varying(1024)`); + await queryRunner.query(`ALTER TABLE "meta" ADD "bannerLight" character varying(1024)`); + await queryRunner.query(`ALTER TABLE "meta" ADD "iconDark" character varying(1024)`); + await queryRunner.query(`ALTER TABLE "meta" ADD "iconLight" character varying(1024)`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "iconLight"`); + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "iconDark"`); + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "bannerLight"`); + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "bannerDark"`); + } +}