mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
migration stuff again
This commit is contained in:
parent
a3f2f997a3
commit
df24f62dc0
@ -130,10 +130,22 @@ module.exports = class staging1672815835837 {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "members" ADD "premium_since" bigint`,
|
||||
);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE members ADD theme_colors text`
|
||||
);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE members ADD pronouns varchar`
|
||||
);
|
||||
await queryRunner.query(`UPDATE users SET bio = '' WHERE bio IS NULL`);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE users ALTER COLUMN bio SET NOT NULL`,
|
||||
);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE users ADD theme_colors text`
|
||||
);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE users ADD pronouns varchar`
|
||||
);
|
||||
await queryRunner.query(
|
||||
`UPDATE users SET mfa_enabled = false WHERE mfa_enabled IS NULL`,
|
||||
);
|
||||
@ -145,5 +157,5 @@ module.exports = class staging1672815835837 {
|
||||
);
|
||||
}
|
||||
|
||||
async down(queryRunner) {}
|
||||
async down(queryRunner) { }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user