@@ -, +, @@ --- .../mysql/atomicupdate/bug_5572-add-AuthCleanBiblio-pref.sql | 12 ++++++++++++ installer/data/mysql/updatedatabase.pl | 10 ---------- 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_5572-add-AuthCleanBiblio-pref.sql --- a/installer/data/mysql/atomicupdate/bug_5572-add-AuthCleanBiblio-pref.sql +++ a/installer/data/mysql/atomicupdate/bug_5572-add-AuthCleanBiblio-pref.sql @@ -0,0 +1,12 @@ +INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) +VALUES ('AuthCleanBiblios','0','If ON, attached biblio records related fields are cleaned when an authority is updated','','YesNo'); + +-- $DBversion = "3.23.00.XXX"; +-- if ( CheckVersion($DBversion) ) { +-- $dbh->do(q{ +-- INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) +-- VALUES ('AuthCleanBiblios','0','If ON, attached biblio records related fields are cleaned when an authority is updated','','YesNo') +-- }); +-- print "Upgrade to $DBversion done (Bug 5572: Cleaning attached biblio records when updating an authority)\n"; +-- SetVersion($DBversion); +-- } --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -11390,16 +11390,6 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } -$DBversion = "3.23.00.XXX"; -if ( CheckVersion($DBversion) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) - VALUES ('AuthCleanBiblios','0','If ON, attached biblio records related fields are cleaned when an authority is updated','','YesNo') - }); - print "Upgrade to $DBversion done (Bug 5572: Cleaning attached biblio records when updating an authority)\n"; - SetVersion($DBversion); -} - # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. --