mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
sidebarlogo migration
This commit is contained in:
parent
34392ff11a
commit
5eedbe153e
1 changed files with 18 additions and 0 deletions
18
packages/backend/migration/1727027985575i-SidebarLogo.js
Normal file
18
packages/backend/migration/1727027985575i-SidebarLogo.js
Normal file
|
@ -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"`);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue