]> git.mxchange.org Git - friendica.git/commitdiff
Fix capitalization of table definition key in DBStructure
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 29 Dec 2019 07:23:37 +0000 (02:23 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 29 Dec 2019 07:23:47 +0000 (02:23 -0500)
- Addresses https://github.com/friendica/friendica/issues/7998#issuecomment-569481865

src/Database/DBStructure.php

index 218cab9507c4236329c6205f8363e730590bf2ee..3b3f55ba5d0de90087ce52c0ebb2b3b7db2fcb0a 100644 (file)
@@ -52,7 +52,7 @@ class DBStructure
                }
 
                foreach ($tables AS $table) {
-                       $sql = "ALTER TABLE " . DBA::quoteIdentifier($table['TABLE_NAME']) . " engine=InnoDB;";
+                       $sql = "ALTER TABLE " . DBA::quoteIdentifier($table['table_name']) . " engine=InnoDB;";
                        echo $sql . "\n";
 
                        $result = DBA::e($sql);