mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-18 03:29:25 -05:00
@@ -545,6 +545,10 @@ void Table::removeKeyFromAllConstraints(const QString& key)
|
||||
|
||||
void Table::renameKeyInAllConstraints(const QString& key, const QString& to)
|
||||
{
|
||||
// Do nothing if the key hasn't really changed
|
||||
if(key == to)
|
||||
return;
|
||||
|
||||
// Find all occurrences of the key and change it to the new one
|
||||
for(auto it=m_constraints.begin();it!=m_constraints.end();)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user