mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 01:33:51 -04:00
Use NULL instead of actual values in the vars table, so that var tweaks result in smaller diffs.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user