Bug 22532: DBRev 18.12.00.059
authorNick Clemens <nick@bywatersolutions.com>
Thu, 18 Apr 2019 10:51:21 +0000 (10:51 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 18 Apr 2019 10:51:21 +0000 (10:51 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

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

diff --git a/Koha.pm b/Koha.pm
index 1d88043..2c78ad9 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.058";
+$VERSION = "18.12.00.059";
 
 sub version {
     return $VERSION;
index 66b44cb..8499e4b 100644 (file)
@@ -108,12 +108,6 @@ __PACKAGE__->table("import_records");
   is_nullable: 0
   size: 40
 
-=head2 z3950random
-
-  data_type: 'varchar'
-  is_nullable: 1
-  size: 40
-
 =cut
 
 __PACKAGE__->add_columns(
@@ -176,8 +170,6 @@ __PACKAGE__->add_columns(
   { data_type => "longtext", is_nullable => 1 },
   "encoding",
   { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
-  "z3950random",
-  { data_type => "varchar", is_nullable => 1, size => 40 },
 );
 
 =head1 PRIMARY KEY
@@ -270,8 +262,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yCx/kRJXjPIB5Uuv40TB7g
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-18 10:50:48
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bqIAQzhgioWtBWU8zFdtjw
 
 
 # You can replace this text with custom content, and it will be preserved on regeneration
diff --git a/installer/data/mysql/atomicupdate/Bug22532_remove_import_records_z39random.perl b/installer/data/mysql/atomicupdate/Bug22532_remove_import_records_z39random.perl
deleted file mode 100644 (file)
index 553fb94..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-    if( column_exists( 'import_records', 'z3950random' ) ) {
-        $dbh->do( "ALTER TABLE import_records DROP COLUMN z3950random" );
-    }
-
-    # Always end with this (adjust the bug info)
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 22532 - Remove import_records z3950random column)\n";
-}
index 88e08c4..a47735b 100755 (executable)
@@ -18225,6 +18225,17 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 22318: Move contents of OpacNavRight preference to Koha news system)\n";
 }
 
+$DBversion = '18.12.00.059';
+if( CheckVersion( $DBversion ) ) {
+    if( column_exists( 'import_records', 'z3950random' ) ) {
+        $dbh->do( "ALTER TABLE import_records DROP COLUMN z3950random" );
+    }
+
+    # Always end with this (adjust the bug info)
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 22532 - Remove import_records z3950random column)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.