Bug 22516: DBRev 18.12.00.034
authorNick Clemens <nick@bywatersolutions.com>
Thu, 28 Mar 2019 18:02:35 +0000 (18:02 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 28 Mar 2019 18:02:35 +0000 (18:02 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Koha.pm
Koha/Schema/Result/Accountline.pm
installer/data/mysql/atomicupdate/bug_22516.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index a4c26c1..b19bfc9 100644 (file)
--- 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 = "18.12.00.033";
+$VERSION = "18.12.00.034";
 
 sub version {
     return $VERSION;
index 9b4505e..aa204d4 100644 (file)
@@ -81,12 +81,6 @@ __PACKAGE__->table("accountlines");
   is_nullable: 1
   size: [28,6]
 
-=head2 lastincrement
-
-  data_type: 'decimal'
-  is_nullable: 1
-  size: [28,6]
-
 =head2 timestamp
 
   data_type: 'timestamp'
@@ -135,8 +129,6 @@ __PACKAGE__->add_columns(
   { data_type => "varchar", is_nullable => 1, size => 80 },
   "amountoutstanding",
   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
-  "lastincrement",
-  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
   "timestamp",
   {
     data_type => "timestamp",
@@ -277,8 +269,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-03-22 20:06:37
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Op6tRrWF4pGrLcunNiXO+g
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-28 18:01:31
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6TVweDBJR9SEra68zHn8fQ
 
 sub koha_objects_class {
     'Koha::Account::Lines';
diff --git a/installer/data/mysql/atomicupdate/bug_22516.perl b/installer/data/mysql/atomicupdate/bug_22516.perl
deleted file mode 100644 (file)
index e40c983..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-
-    if ( column_exists( 'accountlines', 'lastincrement' ) ) {
-        $dbh->do("ALTER TABLE `accountlines` DROP COLUMN `lastincrement`");
-    }
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 22516 - Drop deprecated accountlines.lastincrement field)\n";
-}
index 7382aa8..58c0ab2 100755 (executable)
@@ -17816,6 +17816,17 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 18213 - Add language facets to Elasticsearch)\n";
 }
 
+$DBversion = '18.12.00.034';
+if( CheckVersion( $DBversion ) ) {
+
+    if ( column_exists( 'accountlines', 'lastincrement' ) ) {
+        $dbh->do("ALTER TABLE `accountlines` DROP COLUMN `lastincrement`");
+    }
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 22516 - Drop deprecated accountlines.lastincrement field)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.