Merge pull request #1187 from nymkappa/bugfix/mysql-transactions

Remove useless autocommit=0 in db migration script
This commit is contained in:
wiz authored and GitHub committed 2022-01-25 07:51:31 +00:00
commit b0f453d5bf
1 file changed
-1
-1
View File
@@ -200,7 +200,6 @@ class DatabaseMigration {
const connection = await DB.pool.getConnection();
try {
await this.$executeQuery(connection, 'START TRANSACTION;');
await this.$executeQuery(connection, 'SET autocommit = 0;');
for (const query of transactionQueries) {
await this.$executeQuery(connection, query);
}