save table structure uses transaction

This commit is contained in:
Jan Prochazka
2023-02-05 19:24:22 +01:00
parent e9a01a1ffd
commit cd000098f1
5 changed files with 2 additions and 8 deletions

View File

@@ -131,7 +131,7 @@
}
async function handleConfirmSql(sql, createTableName) {
const resp = await apiCall('database-connections/run-script', { conid, database, sql });
const resp = await apiCall('database-connections/run-script', { conid, database, sql, useTransaction: true });
const { errorMessage } = resp || {};
if (errorMessage) {
showModal(ErrorMessageModal, { title: 'Error when saving', message: errorMessage });