Drop legacy blocks table during migration - Fix linter issues

This commit is contained in:
nymkappa
2022-01-20 17:20:02 +09:00
parent b8410f00d9
commit aa457e316b
5 changed files with 15 additions and 14 deletions

View File

@@ -87,6 +87,7 @@ class DatabaseMigration {
await this.$executeQuery(connection, this.getCreatePoolsTableQuery(), await this.$checkIfTableExists('pools'));
}
if (databaseSchemaVersion < 4) {
await this.$executeQuery(connection, 'DROP table blocks;');
await this.$executeQuery(connection, this.getCreateBlocksTableQuery(), await this.$checkIfTableExists('blocks'));
}
connection.release();