Make showing ads toggleable
This commit is contained in:
parent
e365139961
commit
9b316c3ee7
5 changed files with 23 additions and 2 deletions
11
packages/backend/migration/1657759324648-show-ads.js
Normal file
11
packages/backend/migration/1657759324648-show-ads.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
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"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue