summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-06 19:17:02 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-06 19:17:02 -0800
commit8ed47ceaad15bc7ef7ee292f167c8dddf57593f2 (patch)
tree88d1c75baa86ecb22d115941e02a489d41c502f6 /modules/gallery/controllers
parent62693db037729f18db42d3959c73e470d1b106f1 (diff)
parentc603a446cd6e8aa54254178b4d19e920376aab9f (diff)
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r--modules/gallery/controllers/packager.php5
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");