fix: note table does not exist if scylla has been set up

This commit is contained in:
Namekuji 2023-09-22 17:18:46 -04:00
parent c050ee03fc
commit d2c8292ad7
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -3,11 +3,11 @@ export class AddPostLang1695334243217 {
async up(queryRunner) { async up(queryRunner) {
await queryRunner.query( await queryRunner.query(
`ALTER TABLE "note" ADD "lang" character varying(10)`, `ALTER TABLE IF EXISTS "note" ADD "lang" character varying(10)`,
); );
} }
async down(queryRunner) { async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "lang"`); await queryRunner.query(`ALTER TABLE IF EXISTS "note" DROP COLUMN "lang"`);
} }
} }