]> git.mxchange.org Git - friendica.git/commitdiff
Added some more sql commands to the list
authorMichael <heluecht@pirati.ca>
Sat, 16 May 2020 10:21:16 +0000 (10:21 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 16 May 2020 10:21:16 +0000 (10:21 +0000)
src/Database/DBStructure.php

index dcb59fc9f2a68cf170c649abe5a9cceb520cbd83..9a43c0624017b6a5706b9b9a7fbd3694e2455789 100644 (file)
@@ -1079,7 +1079,7 @@ class DBStructure
 
                while ($process = DBA::fetch($processes)) {
                        $parts = explode(' ', $process['info']);
-                       if (strtolower(array_shift($parts)) == 'alter') {
+                       if (in_array(strtolower(array_shift($parts)), ['alter', 'create', 'drop', 'rename'])) {
                                $isUpdate = true;
                        }
                }