Use NULL instead of actual values in the vars table, so that var tweaks result in smaller diffs.

This commit is contained in:
Bharat Mediratta
2009-12-05 21:21:08 -08:00
parent 8fe7bb6cf6
commit 0bb742ef33

View File

@@ -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");