mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-22 03:53:35 +00:00
migrate push
This commit is contained in:
13
packages/backend/migration/1698907074200-gorillamode.js
Normal file
13
packages/backend/migration/1698907074200-gorillamode.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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"`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user