add: speakAsCat extension

This commit is contained in:
Mar0xy 2023-10-04 04:35:58 +02:00
parent 736c80c39e
commit 89924b587a
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
16 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,12 @@
export class SpeakAsCat1696386694000 {
name = "SpeakAsCat1696386694000";
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "speakAsCat" boolean NOT NULL DEFAULT true`);
await queryRunner.query(`COMMENT ON COLUMN "user"."speakAsCat" IS 'Whether to speak as a cat if chosen.'`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "speakAsCat"`);
}
}