FoundKey/packages/backend/migration/1662489803045-remove-rooms.js

12 lines
309 B
JavaScript
Raw Normal View History

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