backend: remove room data from user

Rooms were remove a while back in upstream Misskey. This removes the
associated data left over in the database.

Changelog: Removed
This commit is contained in:
Norm 2022-09-06 14:50:48 -04:00 committed by Gitea
parent f51f900115
commit 7b4ebd2715
2 changed files with 11 additions and 7 deletions

View file

@ -0,0 +1,11 @@
export class removeRooms1662489803045 {
name = 'removeRooms1662489803045'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "room"`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" ADD "room" jsonb NOT NULL DEFAULT '{}'`);
}
}

View file

@ -124,13 +124,6 @@ export class UserProfile {
}) })
public clientData: Record<string, any>; public clientData: Record<string, any>;
// TODO: そのうち消す
@Column('jsonb', {
default: {},
comment: 'The room data of the User.',
})
public room: Record<string, any>;
@Column('boolean', { @Column('boolean', {
default: false, default: false,
}) })