summaryrefslogtreecommitdiff
path: root/migration/1562448332510-PageTitleHideOption.ts
blob: acc9b7e26f29af5287571f152671d26cc45aa8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import {MigrationInterface, QueryRunner} from "typeorm";

export class PageTitleHideOption1562448332510 implements MigrationInterface {

    public async up(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "page" ADD "hideTitleWhenPinned" boolean NOT NULL DEFAULT false`);
    }

    public async down(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "page" DROP COLUMN "hideTitleWhenPinned"`);
    }

}