Set connection pool timezone to UTC - Close mysql connections upon error

This commit is contained in:
nymkappa
2022-03-06 16:44:09 +01:00
parent 1ced44d970
commit 89411f23d8
6 changed files with 196 additions and 93 deletions

View File

@@ -134,7 +134,8 @@ class DatabaseMigration {
}
if (databaseSchemaVersion < 9) {
await this.$executeQuery(connection, 'ALTER TABLE `state` CHANGE `name` `name` varchar(100)')
await this.$executeQuery(connection, 'ALTER TABLE `state` CHANGE `name` `name` varchar(100)');
await this.$executeQuery(connection, 'ALTER TABLE `hashrates` ADD UNIQUE `hashrate_timestamp_pool_id` (`hashrate_timestamp`, `pool_id`)');
}
connection.release();