From 9513f4f0c7fe0d90d07c19cc2b03cd6f26409fca Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 15 Dec 2018 17:38:34 +0200 Subject: [PATCH] migrations: only drop tables if they exist --- src/migrations/1544877081073-CreateSlowmodeTables.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/migrations/1544877081073-CreateSlowmodeTables.ts b/src/migrations/1544877081073-CreateSlowmodeTables.ts index 59ac9596..4fb944d8 100644 --- a/src/migrations/1544877081073-CreateSlowmodeTables.ts +++ b/src/migrations/1544877081073-CreateSlowmodeTables.ts @@ -62,6 +62,9 @@ export class CreateSlowmodeTables1544877081073 implements MigrationInterface { } public async down(queryRunner: QueryRunner): Promise { - await Promise.all([queryRunner.dropTable("slowmode_channels"), queryRunner.dropTable("slowmode_users")]); + await Promise.all([ + queryRunner.dropTable("slowmode_channels", true), + queryRunner.dropTable("slowmode_users", true) + ]); } }