mizzkey/packages/backend/migration/1684236161625-addEmojiDraftFlag.js
2023-10-19 22:18:30 +09:00

12 lines
339 B
JavaScript

export class AddEmojiDraftFlag1684236161625 {
name = 'AddEmojiDraftFlag1684236161625'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "emoji" ADD "draft" boolean NOT NULL DEFAULT false`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "emoji" DROP COLUMN "draft"`);
}
}