misskey/packages/backend/migration/1698907074200-gorillamode.js

14 lines
551 B
JavaScript
Raw Normal View History

2023-11-03 16:33:23 +00:00
export class Gorillamode1698907074200 {
name = 'Gorillamode1698907074200'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "isGorilla" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`COMMENT ON COLUMN "user"."isGorilla" IS 'Whether the User is a gorilla.'`);
}
async down(queryRunner) {
await queryRunner.query(`COMMENT ON COLUMN "user"."isGorilla" IS 'Whether the User is a gorilla.'`);
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "isGorilla"`);
}
}