sharkey/packages/backend/migration/1710146785086-feat-hide-profilefile.js

10 lines
352 B
JavaScript
Raw Normal View History

export class FeatHideProfileFile1710146785086 {
name = 'FeatHideProfileFile1710146785086'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" ADD "hideProfileFiles" boolean NOT NULL DEFAULT false`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "hideProfileFiles"`);
}
}