From b61df924bfe7d83cc15fa2a358e4a09d4d54df8d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 9 Nov 2022 14:18:07 -0300 Subject: [PATCH] Bug 30250: DBRev 22.06.00.082 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- ...0250_-_add_ApplyFrameworkDefaults_syspref.pl | 12 ------------ installer/data/mysql/db_revs/220600082.pl | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 13 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl create mode 100755 installer/data/mysql/db_revs/220600082.pl diff --git a/Koha.pm b/Koha.pm index d2183f0191..6ab9d0d373 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "22.06.00.081"; +$VERSION = "22.06.00.082"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl b/installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl deleted file mode 100755 index 39b7c8ccb5..0000000000 --- a/installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl +++ /dev/null @@ -1,12 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "30250", - description => "Add new system preference ApplyFrameworkDefaults", - up => sub { - my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('ApplyFrameworkDefaults', 'new', "new|duplicate|changed|imported", "Configure when to apply framework default values - when cataloguing a new record, or when editing a record as new (duplicating), or when changing framework, or when importing a record", 'multiple') }); - }, -}; diff --git a/installer/data/mysql/db_revs/220600082.pl b/installer/data/mysql/db_revs/220600082.pl new file mode 100755 index 0000000000..020fca157e --- /dev/null +++ b/installer/data/mysql/db_revs/220600082.pl @@ -0,0 +1,17 @@ +use Modern::Perl; + +return { + bug_number => "30250", + description => "Add new system preference ApplyFrameworkDefaults", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) + VALUES ('ApplyFrameworkDefaults', 'new', "new|duplicate|changed|imported", "Configure when to apply framework default values - when cataloguing a new record, or when editing a record as new (duplicating), or when changing framework, or when importing a record", 'multiple') + }); + + say $out "Added new system preference 'ApplyFrameworkDefaults'"; + }, +}; -- 2.39.5