3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

migrations: only drop tables if they exist

This commit is contained in:
Dragory 2018-12-15 17:38:34 +02:00
parent 2d2145eda3
commit 9513f4f0c7

View file

@ -62,6 +62,9 @@ export class CreateSlowmodeTables1544877081073 implements MigrationInterface {
}
public async down(queryRunner: QueryRunner): Promise<any> {
await Promise.all([queryRunner.dropTable("slowmode_channels"), queryRunner.dropTable("slowmode_users")]);
await Promise.all([
queryRunner.dropTable("slowmode_channels", true),
queryRunner.dropTable("slowmode_users", true)
]);
}
}