2023-04-02 11:24:12 +00:00
|
|
|
export class SpeakAsCat1680426269172 {
|
2023-04-07 01:56:46 +00:00
|
|
|
name = "SpeakAsCat1680426269172";
|
2023-04-02 11:24:12 +00:00
|
|
|
|
2023-04-07 01:56:46 +00:00
|
|
|
async up(queryRunner) {
|
|
|
|
await queryRunner.query(`
|
2023-04-02 11:24:12 +00:00
|
|
|
ALTER TABLE "user"
|
|
|
|
ADD "speakAsCat" boolean NOT NULL DEFAULT true
|
|
|
|
`);
|
2023-04-07 01:56:46 +00:00
|
|
|
await queryRunner.query(`
|
2023-04-02 11:24:12 +00:00
|
|
|
COMMENT ON COLUMN "user"."speakAsCat"
|
|
|
|
IS 'Whether to speak as a cat if isCat.'
|
|
|
|
`);
|
2023-04-07 01:56:46 +00:00
|
|
|
}
|
2023-04-02 11:24:12 +00:00
|
|
|
|
2023-04-07 01:56:46 +00:00
|
|
|
async down(queryRunner) {
|
|
|
|
await queryRunner.query(`
|
2023-04-02 11:24:12 +00:00
|
|
|
ALTER TABLE "user" DROP COLUMN "speakAsCat"
|
|
|
|
`);
|
2023-04-07 01:56:46 +00:00
|
|
|
}
|
2023-04-02 11:24:12 +00:00
|
|
|
}
|