From ae5d6d46dedd2b375a18b1a18850493420a3080a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 14 May 2015 11:10:13 -0300 Subject: [PATCH] Bug 11006: DBRev 3.19.00.040 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../atomicupdate/bug_11006-DROP_COLUMN_totalamount.sql | 1 - installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_11006-DROP_COLUMN_totalamount.sql diff --git a/Koha.pm b/Koha.pm index d42ed5c7c4..05c027ef39 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.19.00.039"; +$VERSION = "3.19.00.040"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_11006-DROP_COLUMN_totalamount.sql b/installer/data/mysql/atomicupdate/bug_11006-DROP_COLUMN_totalamount.sql deleted file mode 100644 index 3cd0843381..0000000000 --- a/installer/data/mysql/atomicupdate/bug_11006-DROP_COLUMN_totalamount.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE aqorders DROP COLUMN totalamount; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 22742512ea..ebba7da6d6 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10401,6 +10401,15 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.19.00.040"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q| + ALTER TABLE aqorders DROP COLUMN totalamount + |); + print "Upgrade to $DBversion done (Bug 11006: Drop column aqorders.totalamount)\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. -- 2.20.1