Merge branch 'develop' into feature/2024.10
This commit is contained in:
commit
b266a5f9f6
20 changed files with 93 additions and 13 deletions
|
|
@ -0,0 +1,13 @@
|
|||
export class AddUserEnableRss1733748798177 {
|
||||
name = 'AddUserEnableRss1733748798177'
|
||||
|
||||
async up(queryRunner) {
|
||||
// Disable by default, then specifically enable for all existing local users.
|
||||
await queryRunner.query(`ALTER TABLE "user" ADD "enable_rss" boolean NOT NULL DEFAULT false`);
|
||||
await queryRunner.query(`UPDATE "user" SET "enable_rss" = true WHERE host IS NULL;`)
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "enable_rss"`);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
export class AlterUserHideOnlineStatusDefaultTrue1733754069260 {
|
||||
name = 'AlterUserHideOnlineStatusDefaultTrue1733754069260'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "hideOnlineStatus" SET DEFAULT true`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "hideOnlineStatus" SET DEFAULT false`);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue