sharkey/packages/backend/migration/1710146785085-feat-hide-activity.js

12 lines
365 B
JavaScript
Raw Normal View History

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