2020-11-17 05:59:15 +00:00
|
|
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
|
|
|
|
|
|
export class instancePinnedPages1605585339718 implements MigrationInterface {
|
|
|
|
name = 'instancePinnedPages1605585339718'
|
|
|
|
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
2020-11-25 12:31:34 +00:00
|
|
|
await queryRunner.query(`ALTER TABLE "meta" ADD "pinnedPages" character varying(512) array NOT NULL DEFAULT '{"/featured", "/channels", "/explore", "/pages", "/about-misskey"}'::varchar[]`);
|
2020-11-17 05:59:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "pinnedPages"`);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|