fix: note table does not exist if scylla has been set up
This commit is contained in:
parent
c050ee03fc
commit
d2c8292ad7
1 changed files with 2 additions and 2 deletions
|
@ -3,11 +3,11 @@ export class AddPostLang1695334243217 {
|
|||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "note" ADD "lang" character varying(10)`,
|
||||
`ALTER TABLE IF EXISTS "note" ADD "lang" character varying(10)`,
|
||||
);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "lang"`);
|
||||
await queryRunner.query(`ALTER TABLE IF EXISTS "note" DROP COLUMN "lang"`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue