From 5eedbe153ee12bf5f4960b422cd45edd1b34cdc8 Mon Sep 17 00:00:00 2001 From: piuvas Date: Sun, 22 Sep 2024 15:10:12 -0300 Subject: [PATCH] sidebarlogo migration --- .../migration/1727027985575i-SidebarLogo.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/backend/migration/1727027985575i-SidebarLogo.js diff --git a/packages/backend/migration/1727027985575i-SidebarLogo.js b/packages/backend/migration/1727027985575i-SidebarLogo.js new file mode 100644 index 0000000000..a9a066ed6c --- /dev/null +++ b/packages/backend/migration/1727027985575i-SidebarLogo.js @@ -0,0 +1,18 @@ +/* + * SPDX-FileCopyrightText: piuvas and other Sharkey contributors + * SPDX-License-Identifier: AGPL-3.0-only + */ + +export class SidebarLogo1727027985575 { + name = 'SidebarLogo1727027985575'; + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" ADD "sidebarLogoUrl" character varying(1024)`); + await queryRunner.query(`ALTER TABLE "instance" ADD "sidebarLogoUrl" character varying(1024)`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "sidebarLogoUrl"`); + await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "sidebarLogoUrl"`); + } +}