mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01:00
22 lines
554 B
JavaScript
22 lines
554 B
JavaScript
|
export class AnnouncementPopup1688845537045 {
|
||
|
name = "AnnouncementPopup1688845537045";
|
||
|
|
||
|
async up(queryRunner) {
|
||
|
await queryRunner.query(
|
||
|
`ALTER TABLE "announcement" ADD "showPopup" boolean NOT NULL DEFAULT false`,
|
||
|
);
|
||
|
await queryRunner.query(
|
||
|
`ALTER TABLE "announcement" ADD "isGoodNews" boolean NOT NULL DEFAULT false`,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
async down(queryRunner) {
|
||
|
await queryRunner.query(
|
||
|
`ALTER TABLE "announcement" DROP COLUMN "isGoodNews"`,
|
||
|
);
|
||
|
await queryRunner.query(
|
||
|
`ALTER TABLE "announcement" DROP COLUMN "showPopup"`,
|
||
|
);
|
||
|
}
|
||
|
}
|