summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-06 10:03:59 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-06 10:03:59 -0800
commitc603a446cd6e8aa54254178b4d19e920376aab9f (patch)
treebc6aec5d61dc19baba723cdfe41fd3fd01bfde7c /modules/gallery/controllers
parent8d234cb4f5c1e67fdad3aa6c8d316de34337d832 (diff)
parent0bb742ef33fe8f4ab8f4745b94355dab36ccb6cb (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
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");