rudeshark.net/packages/backend/migration/1657759324648-show-ads.js

12 lines
304 B
JavaScript
Raw Normal View History

2022-07-14 02:54:12 +02:00
export class showAds1657759324648 {
name = 'showAds1657759324648'
2022-07-14 08:54:22 +02:00
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" ADD "showAds" boolean NOT NULL DEFAULT false`);
}
2022-07-14 02:54:12 +02:00
2022-07-14 08:54:22 +02:00
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_profile" DROP "showAds"`);
}
2022-07-14 02:54:12 +02:00
}