misskey/packages/backend/migration/1724078037441-vacationMode.js
2024-08-19 23:50:26 +09:00

12 lines
310 B
JavaScript

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