1
0
Fork 1
mirror of https://example.com synced 2024-11-28 08:26:39 +09:00
firefish/packages/backend/migration/1680426269172-SpeakAsCat.js
Kainoa Kanter 7fb130b06e formatting
2023-04-06 18:56:46 -07:00

20 lines
499 B
JavaScript

export class SpeakAsCat1680426269172 {
name = "SpeakAsCat1680426269172";
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 isCat.'
`);
}
async down(queryRunner) {
await queryRunner.query(`
ALTER TABLE "user" DROP COLUMN "speakAsCat"
`);
}
}