1
0
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:
Madeline 2023-01-05 17:30:50 +11:00
parent a3f2f997a3
commit df24f62dc0
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -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) { }
};