1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Bugfix in preparazione della release

Risoluzione di alcuni bug presenti in preparazione della release.
This commit is contained in:
Thomas Zilio
2017-08-30 11:50:46 +02:00
parent af55c235f2
commit 22cedab248
17 changed files with 162 additions and 152 deletions

View File

@@ -290,6 +290,12 @@ class Update
$database->query('SET foreign_key_checks = 1');
}
// Normalizzazione dell'engine MySQL
$engines = $database->fetchArray('SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '.prepare($database_name)." AND ENGINE != 'InnoDB'");
foreach ($engines as $engine) {
$database->query('ALTER TABLE `'.$engine['TABLE_NAME'].'` ENGINE=InnoDB');
}
}
protected static function executeScript($script)