diff --git a/packages/backend/migration/1662489803045-remove-rooms.js b/packages/backend/migration/1662489803045-remove-rooms.js new file mode 100644 index 000000000..77ea85bac --- /dev/null +++ b/packages/backend/migration/1662489803045-remove-rooms.js @@ -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 '{}'`); + } +} diff --git a/packages/backend/src/models/entities/user-profile.ts b/packages/backend/src/models/entities/user-profile.ts index 251b998be..224bbe3cd 100644 --- a/packages/backend/src/models/entities/user-profile.ts +++ b/packages/backend/src/models/entities/user-profile.ts @@ -124,13 +124,6 @@ export class UserProfile { }) public clientData: Record; - // TODO: そのうち消す - @Column('jsonb', { - default: {}, - comment: 'The room data of the User.', - }) - public room: Record; - @Column('boolean', { default: false, }) diff --git a/packages/foundkey-js/src/api.types.ts b/packages/foundkey-js/src/api.types.ts index 2a08af7d6..8f81fc2d1 100644 --- a/packages/foundkey-js/src/api.types.ts +++ b/packages/foundkey-js/src/api.types.ts @@ -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; };