mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
12 lines
412 B
TypeScript
12 lines
412 B
TypeScript
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||
|
export class Page1668828368510 implements MigrationInterface {
|
||
|
async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
await queryRunner.query(
|
||
|
`ALTER TABLE "page" ADD "isPublic" boolean NOT NULL DEFAULT true`,
|
||
|
);
|
||
|
}
|
||
|
async down(queryRunner: QueryRunner): Promise<void> {
|
||
|
await queryRunner.query(`ALTER TABLE "page" DROP COLUMN "isPublic"`);
|
||
|
}
|
||
|
}
|