mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
21 lines
531 B
JavaScript
21 lines
531 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"
|
||
|
`);
|
||
|
}
|
||
|
}
|