migrate push

This commit is contained in:
mattyatea 2023-11-04 01:33:23 +09:00
parent bffb7c0283
commit 4d9db395eb
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
export class Gorillamode1698907074200 {
name = 'Gorillamode1698907074200'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "isGorilla" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`COMMENT ON COLUMN "user"."isGorilla" IS 'Whether the User is a gorilla.'`);
}
async down(queryRunner) {
await queryRunner.query(`COMMENT ON COLUMN "user"."isGorilla" IS 'Whether the User is a gorilla.'`);
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "isGorilla"`);
}
}