UpdateDatabase/MysqlEngineCharset.php
authorAlan Knowles <alan@roojs.com>
Tue, 26 Sep 2017 07:35:10 +0000 (15:35 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Sep 2017 07:35:10 +0000 (15:35 +0800)
UpdateDatabase/MysqlEngineCharset.php

index 5bf3ce5..3a9bbcc 100644 (file)
@@ -114,10 +114,17 @@ class Pman_Core_UpdateDatabase_MysqlEngineCharset {
         $db = DB_DataObject::factory('core_enum');
         $db->query("show variables like 'innodb_file_per_table'");
         $db->fetch();
-        if ($db->Value == 'OFF') {
-            die("Error: set innodb_file_per_table = 1 in my.cnf\n\n");
+        
+        $pg = HTML_FlexyFramework::get()->page;
+        
+        if (empty($pg->opts['skip-mysql-checks'])) {
+            if ($db->Value == 'OFF') {
+                die("Error: set innodb_file_per_table = 1 in my.cnf\n\n");
+            }
+            
         }
         
+        
         // get a list of table views...
         // innodb in single files is far more efficient that MYD or one big innodb file.
         // first check if database is using this format.