projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
318fe40
)
UpdateDatabase/MysqlEngineCharset.php
author
Alan Knowles
<alan@roojs.com>
Tue, 26 Sep 2017 07:35:10 +0000
(15:35 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 26 Sep 2017 07:35:10 +0000
(15:35 +0800)
UpdateDatabase/MysqlEngineCharset.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase/MysqlEngineCharset.php
b/UpdateDatabase/MysqlEngineCharset.php
index
5bf3ce5
..
3a9bbcc
100644
(file)
--- a/
UpdateDatabase/MysqlEngineCharset.php
+++ b/
UpdateDatabase/MysqlEngineCharset.php
@@
-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();
$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.
// 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.