Bug 18663: Add pref ExportRemoveFields if missing

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Jonathan Druart 2017-05-23 16:16:17 -03:00 committed by Mason James
parent d6265f348a
commit fd73fa95fc
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,2 @@
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('ExportRemoveFields','',NULL,'List of fields for non export in circulation.pl (separated by a space)','Free');

View File

@ -12988,6 +12988,15 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "16.05.14.001";
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('ExportRemoveFields','',NULL,'List of fields for non export in circulation.pl (separated by a space)','Free');
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18663 - Missing db update for ExportRemoveFields)\n";
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug sss
# if there is anything in the atomicupdate, read and execute it.