diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2009-12-22 23:34:50 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2009-12-22 23:34:50 +0000 |
| commit | 5855c4333ce6929c63d5639c7623152d80447d47 (patch) | |
| tree | e2a22c1b7c6d95539fd63984622124deb934b875 /modules/gallery/controllers/packager.php | |
| parent | 1baaeeefe81ef1a96153a050e9307d99768dd0df (diff) | |
| parent | 86e0bc863a1c6739a9cd153931c099307e4c1000 (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/packager.php')
| -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"); |
