hippofish/packages/backend/migration/1657759324648-show-ads.js
2022-07-13 17:54:12 -07:00

11 lines
322 B
JavaScript

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