mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Do not recreate table schema if table did not change
When the table schema was not modified in the Edit Table dialog, do not do anything when clicking the OK button. See issue #1686.
This commit is contained in:
@@ -1425,6 +1425,10 @@ bool DBBrowserDB::alterTable(const sqlb::ObjectIdentifier& tablename, const sqlb
|
||||
}
|
||||
}
|
||||
|
||||
// Check if any changes were made to the table schema
|
||||
if(old_table == new_table)
|
||||
return true;
|
||||
|
||||
// Create savepoint to be able to go back to it in case of any error
|
||||
QString savepointName = generateSavepointName("renamecolumn");
|
||||
if(!setSavepoint(savepointName))
|
||||
|
||||
Reference in New Issue
Block a user