FoundKey/packages/backend/migration/1662999442223-update-pinned-pages.js

12 lines
503 B
JavaScript
Raw Normal View History

export class updatePinnedPages1662999442223 {
name = 'updatePinnedPages1662999442223'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "pinnedPages" SET DEFAULT '{"/featured", "/channels", "/explore", "/pages", "/about-foundkey"}'::varchar[]`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "pinnedPages" SET DEFAULT '{"/featured", "/channels", "/explore", "/pages", "/about-misskey"}'::varchar[]`);
}
}