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