mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-04-28 09:36:56 +00:00
Also keeps the database shape consistent with what the ORM model says, because upstream forgot to do that.
12 lines
383 B
JavaScript
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"`);
|
|
}
|
|
}
|