summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-31 00:30:15 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-31 00:30:15 +1100
commit73e48a3b2bdf80f06303b6c197d6b886bc4a9ab4 (patch)
treee82ea971b4fa02db4d088b5160f5b12eee86351b
parentMerge branch 'fix/relase_typo' into slowcord (diff)
downloadserver-73e48a3b2bdf80f06303b6c197d6b886bc4a9ab4.tar.xz
fixed migration?
-rw-r--r--util/src/migrations/1648643945733-ReleaseTypo.ts3
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");
 	}
 }