diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-27 15:47:54 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-27 15:47:54 -0700 |
commit | 4828db003f3ee505eb9e6d056cdb142da34b78ff (patch) | |
tree | a8d33d9d584e6a694edc80ef71fa0385c78f10de /modules/gallery/controllers/packager.php | |
parent | 75c098204f44538b79932f852469ae9d4338074c (diff) |
Remove 'ENGINE=InnoDB' specification from tables that we create. Use
the system's default table specification. Fixes ticket #597.
Diffstat (limited to 'modules/gallery/controllers/packager.php')
-rw-r--r-- | modules/gallery/controllers/packager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/controllers/packager.php b/modules/gallery/controllers/packager.php index 7b4d68f6..fbb1d07d 100644 --- a/modules/gallery/controllers/packager.php +++ b/modules/gallery/controllers/packager.php @@ -123,6 +123,10 @@ class Packager_Controller extends Controller { // Normalize dates $line = preg_replace("/,$root_created_timestamp,/", ",UNIX_TIMESTAMP(),", $line); $line = preg_replace("/,$root_updated_timestamp,/", ",UNIX_TIMESTAMP(),", $line); + + // Remove ENGINE= specifications + $line = preg_replace("/ENGINE=\S+ /", "", $line); + $buf .= $line; } $fd = fopen($sql_file, "wb"); |