From 3615c7b34bc77f04e1421cab8dca8e094e10f0ed Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 29 Apr 2016 13:14:50 +0000 Subject: [PATCH] Bug 15531 - DBRev 3.23.00.057 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- Koha/Schema/Result/Aqbasket.pm | 6 +++--- .../bug_15531-add_is_standing_to_aqbasket.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 4 files changed, 14 insertions(+), 5 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_15531-add_is_standing_to_aqbasket.sql diff --git a/Koha.pm b/Koha.pm index da6b18b8a6..641f9df3f9 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 = "3.23.00.056"; +$VERSION = "3.23.00.057"; sub version { return $VERSION; diff --git a/Koha/Schema/Result/Aqbasket.pm b/Koha/Schema/Result/Aqbasket.pm index e2fb8d7bf2..f4dd75d68e 100644 --- a/Koha/Schema/Result/Aqbasket.pm +++ b/Koha/Schema/Result/Aqbasket.pm @@ -297,9 +297,9 @@ Composing rels: L -> borrowernumber __PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber"); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-14 16:28:06 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CuP/8SFJOD4h4XZf7AdeiA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 13:13:55 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6gRJtrZ6ZXLHjqX281d9Hg -# You can replace this text with custom content, and it will be preserved on regeneration +# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/installer/data/mysql/atomicupdate/bug_15531-add_is_standing_to_aqbasket.sql b/installer/data/mysql/atomicupdate/bug_15531-add_is_standing_to_aqbasket.sql deleted file mode 100644 index 4df3e9c494..0000000000 --- a/installer/data/mysql/atomicupdate/bug_15531-add_is_standing_to_aqbasket.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE aqbasket ADD COLUMN is_standing TINYINT(1) NOT NULL DEFAULT 0 AFTER branch; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 5246dec856..eed4c233ca 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12482,6 +12482,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.23.00.057"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + ALTER TABLE aqbasket ADD COLUMN is_standing TINYINT(1) NOT NULL DEFAULT 0 AFTER branch; + }); + + print "Upgrade to $DBversion done (Bug 15531 - Add support for standing orders)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 -- 2.39.2