From 58e318457e02704b07f09fc75e278aadcabdac10 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Fri, 18 Dec 2015 10:26:55 -0300 Subject: [PATCH] Bug 5572: (follow-up) atomic update --- .../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 diff --git a/installer/data/mysql/atomicupdate/bug_5572-add-AuthCleanBiblio-pref.sql b/installer/data/mysql/atomicupdate/bug_5572-add-AuthCleanBiblio-pref.sql new file mode 100644 index 0000000..8a2323e --- /dev/null +++ b/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); +-- } diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 344a2af..f8ab41e 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/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. -- 1.9.1