mirror of
https://github.com/mempool/mempool.git
synced 2025-03-01 09:10:02 +01:00
Merge pull request #1187 from nymkappa/bugfix/mysql-transactions
Remove useless autocommit=0 in db migration script
This commit is contained in:
commit
1263d05ac8
1 changed files with 0 additions and 1 deletions
|
@ -200,7 +200,6 @@ class DatabaseMigration {
|
||||||
const connection = await DB.pool.getConnection();
|
const connection = await DB.pool.getConnection();
|
||||||
try {
|
try {
|
||||||
await this.$executeQuery(connection, 'START TRANSACTION;');
|
await this.$executeQuery(connection, 'START TRANSACTION;');
|
||||||
await this.$executeQuery(connection, 'SET autocommit = 0;');
|
|
||||||
for (const query of transactionQueries) {
|
for (const query of transactionQueries) {
|
||||||
await this.$executeQuery(connection, query);
|
await this.$executeQuery(connection, query);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue