diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-12-05 21:21:08 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-05 21:21:08 -0800 |
commit | 0bb742ef33fe8f4ab8f4745b94355dab36ccb6cb (patch) | |
tree | 6aeb075b21484d612aed4947f8375bc5fb1eb709 /modules/gallery | |
parent | 8fe7bb6cf644b9f9d869b2b28d1a4f42bbda6e6e (diff) |
Use NULL instead of actual values in the vars table, so that var tweaks result in smaller diffs.
Diffstat (limited to 'modules/gallery')
-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"); |