barkey/packages/backend/migration/1733748798177-add_user_enableRss.js
HellhoundSoftware 6478399432
Don't sneakily disable RSS behind users' backs
Also keeps the database shape consistent with what the ORM model says,
because upstream forgot to do that.
2025-01-13 23:34:54 -05:00

12 lines
383 B
JavaScript

export class AddUserEnableRss1733748798177 {
name = 'AddUserEnableRss1733748798177'
async up(queryRunner) {
// No, leave RSS enabled by default, WTF guys?
await queryRunner.query(`ALTER TABLE "user" ADD "enable_rss" boolean NOT NULL DEFAULT true`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "enable_rss"`);
}
}