hippofish/packages/backend/migration/1657759324648-show-ads.js

12 lines
322 B
JavaScript
Raw Normal View History

2022-07-14 02:54:12 +02:00
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"`);
}
}