migration
This commit is contained in:
parent
b3fc2b484a
commit
4dccea066e
17
packages/backend/migration/9999999999999-power.js
Normal file
17
packages/backend/migration/9999999999999-power.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
export class Power9999999999999 {
|
||||||
|
name = 'Power9999999999999';
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "isLocked" SET DEFAULT true;`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" SET DEFAULT 'private';`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followingVisibility" SET DEFAULT 'private';`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "isExplorable" SET DEFAULT false;`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "hideOnlineStatus" SET DEFAULT true;`);
|
||||||
|
}
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "isLocked" SET DEFAULT false;`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" SET DEFAULT 'public';`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followingVisibility" SET DEFAULT 'public';`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "isExplorable" SET DEFAULT NULL;`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "hideOnlineStatus" SET DEFAULT NULL;`);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user