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