Remove remaining room data #114
3 changed files with 11 additions and 11 deletions
11
packages/backend/migration/1662489803045-remove-rooms.js
Normal file
11
packages/backend/migration/1662489803045-remove-rooms.js
Normal 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 '{}'`);
|
||||
}
|
||||
}
|
|
@ -124,13 +124,6 @@ export class UserProfile {
|
|||
})
|
||||
public clientData: Record<string, any>;
|
||||
|
||||
// TODO: そのうち消す
|
||||
@Column('jsonb', {
|
||||
default: {},
|
||||
comment: 'The room data of the User.',
|
||||
})
|
||||
public room: Record<string, any>;
|
||||
|
||||
@Column('boolean', {
|
||||
default: false,
|
||||
})
|
||||
|
|
|
@ -544,10 +544,6 @@ export type Endpoints = {
|
|||
// reset-password
|
||||
'reset-password': { req: { token: string; password: string; }; res: null; };
|
||||
|
||||
// room
|
||||
'room/show': { req: TODO; res: TODO; };
|
||||
'room/update': { req: TODO; res: TODO; };
|
||||
|
||||
// stats
|
||||
'stats': { req: NoParams; res: Stats; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue