migrations: only drop tables if they exist
This commit is contained in:
parent
2d2145eda3
commit
9513f4f0c7
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue