FoundKey/packages/backend/migration/1662489803045-remove-rooms.js
Francis Dinh 7b4ebd2715 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
2022-09-07 08:30:28 +00:00

11 lines
309 B
JavaScript

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 '{}'`);
}
}