diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-03-31 00:30:15 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-03-31 00:30:15 +1100 |
commit | 73e48a3b2bdf80f06303b6c197d6b886bc4a9ab4 (patch) | |
tree | e82ea971b4fa02db4d088b5160f5b12eee86351b | |
parent | Merge branch 'fix/relase_typo' into slowcord (diff) | |
download | server-73e48a3b2bdf80f06303b6c197d6b886bc4a9ab4.tar.xz |
fixed migration?
-rw-r--r-- | util/src/migrations/1648643945733-ReleaseTypo.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/src/migrations/1648643945733-ReleaseTypo.ts b/util/src/migrations/1648643945733-ReleaseTypo.ts index 194cb1bf..944b9dd9 100644 --- a/util/src/migrations/1648643945733-ReleaseTypo.ts +++ b/util/src/migrations/1648643945733-ReleaseTypo.ts @@ -4,10 +4,13 @@ export class ReleaseTypo1648643945733 implements MigrationInterface { name = "ReleaseTypo1648643945733"; public async up(queryRunner: QueryRunner): Promise<void> { + //drop table first because typeorm creates it before migrations run + await queryRunner.dropTable("client_release", true); await queryRunner.renameTable("client_relase", "client_release"); } public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.dropTable("client_relase", true); await queryRunner.renameTable("client_release", "client_relase"); } } |