diff --git a/packages/backend/migration/1668828368510PageDraft.js b/packages/backend/migration/1668828368510PageDraft.js new file mode 100644 index 000000000..4a6818912 --- /dev/null +++ b/packages/backend/migration/1668828368510PageDraft.js @@ -0,0 +1,8 @@ +export class Page1668828368510 { + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "page" ADD "isPublic" boolean NOT NULL DEFAULT true`); + } + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "page" DROP COLUMN "isPublic"`); + } +}