diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-06 10:04:02 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-06 10:04:02 -0800 |
| commit | 61d64c12a26e7a68969c2e03c902ba753f259e00 (patch) | |
| tree | 9b5090a410da3655db0007e7daab5d621ee76abb /modules/gallery/controllers | |
| parent | dfc082ad5f972593998ad08c7c98cadf40bcfebd (diff) | |
| parent | c603a446cd6e8aa54254178b4d19e920376aab9f (diff) | |
Merge branch 'master' into talmdal_dev
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"); |
