@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_27981.perl | 9 +++++++++ installer/data/mysql/atomicupdate/bug_9921.perl | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_27981.perl delete mode 100644 installer/data/mysql/atomicupdate/bug_9921.perl --- a/installer/data/mysql/atomicupdate/bug_27981.perl +++ a/installer/data/mysql/atomicupdate/bug_27981.perl @@ -0,0 +1,9 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do( + q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('autoControlNumber','OFF','biblionumber|OFF', + 'Used to autogenerate a Control Number: biblionumber will be as biblionumber; OFF will leave it as is','Choice');} + ); + + NewVersion( $DBversion, 27981, "Make it possible to force 001 = biblionumber"); +} --- a/installer/data/mysql/atomicupdate/bug_9921.perl +++ a/installer/data/mysql/atomicupdate/bug_9921.perl @@ -1,11 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" ); - $dbh->do( - q{INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('autoControlNumber','OFF','biblionumber|OFF', - 'Used to autogenerate a Control Number: biblionumber will be as biblionumber; OFF will leave it as is','Choice');} - ); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 9921, "Make it possible to force 001 = biblionumber"); -} --