diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-06 10:03:59 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-06 10:03:59 -0800 |
commit | c603a446cd6e8aa54254178b4d19e920376aab9f (patch) | |
tree | bc6aec5d61dc19baba723cdfe41fd3fd01bfde7c /modules/gallery/controllers | |
parent | 8d234cb4f5c1e67fdad3aa6c8d316de34337d832 (diff) | |
parent | 0bb742ef33fe8f4ab8f4745b94355dab36ccb6cb (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/packager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/controllers/packager.php b/modules/gallery/controllers/packager.php index 82c3c938..1354a01b 100644 --- a/modules/gallery/controllers/packager.php +++ b/modules/gallery/controllers/packager.php @@ -134,6 +134,11 @@ class Packager_Controller extends Controller { $line = preg_replace("/ENGINE=\S+ /", "", $line); } + // Null out ids in the vars table since it's an auto_increment table and this will result in + // more stable values so we'll have less churn in install.sql. + $line = preg_replace( + "/^INSERT INTO {vars} VALUES \(\d+/", "INSERT INTO {vars} VALUES (NULL", $line); + $buf .= $line; } $fd = fopen($sql_file, "wb"); |