Bug 10455 - DBRev 16.06.00.034
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 14:37:46 +0000 (14:37 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 14:37:46 +0000 (14:37 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha.pm
Koha/Schema/Result/Biblioitem.pm
Koha/Schema/Result/Deletedbiblioitem.pm
installer/data/mysql/atomicupdate/bug_10455.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 8d638e0..0e7c99a 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 = "16.06.00.033";
+$VERSION = "16.06.00.034";
 
 sub version {
     return $VERSION;
index a9b926a..a26314f 100644 (file)
@@ -157,11 +157,6 @@ __PACKAGE__->table("biblioitems");
   is_nullable: 1
   size: 25
 
-=head2 marc
-
-  data_type: 'longblob'
-  is_nullable: 1
-
 =head2 url
 
   data_type: 'text'
@@ -274,8 +269,6 @@ __PACKAGE__->add_columns(
   { data_type => "varchar", is_nullable => 1, size => 255 },
   "lccn",
   { data_type => "varchar", is_nullable => 1, size => 25 },
-  "marc",
-  { data_type => "longblob", is_nullable => 1 },
   "url",
   { data_type => "text", is_nullable => 1 },
   "cn_source",
@@ -341,8 +334,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-24 14:19:57
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A/4lKYlKWWd8TcMVzMRtCg
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sIIeEpbe61VNkEYpUXNDkw
 
 __PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );
 
index 659ced0..ce588b7 100644 (file)
@@ -156,11 +156,6 @@ __PACKAGE__->table("deletedbiblioitems");
   is_nullable: 1
   size: 25
 
-=head2 marc
-
-  data_type: 'longblob'
-  is_nullable: 1
-
 =head2 url
 
   data_type: 'text'
@@ -268,8 +263,6 @@ __PACKAGE__->add_columns(
   { data_type => "varchar", is_nullable => 1, size => 255 },
   "lccn",
   { data_type => "varchar", is_nullable => 1, size => 25 },
-  "marc",
-  { data_type => "longblob", is_nullable => 1 },
   "url",
   { data_type => "text", is_nullable => 1 },
   "cn_source",
@@ -303,8 +296,8 @@ __PACKAGE__->add_columns(
 __PACKAGE__->set_primary_key("biblioitemnumber");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-24 14:19:57
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RTMXhtMKvih1zhllHwwwYQ
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rijc/QK/Kdh3bMcbOTF8Tg
 
 
 # You can replace this text with custom content, and it will be preserved on regeneration
diff --git a/installer/data/mysql/atomicupdate/bug_10455.sql b/installer/data/mysql/atomicupdate/bug_10455.sql
deleted file mode 100644 (file)
index 8e81536..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE biblioitems DROP COLUMN marc;
-ALTER TABLE deletedbiblioitems DROP COLUMN marc;
index 7d67fe2..179e930 100755 (executable)
@@ -13181,6 +13181,20 @@ if ( CheckVersion($DBversion) ) {
       SetVersion($DBversion);
 }
 
+$DBversion = "16.06.00.034";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q{
+        ALTER TABLE biblioitems DROP COLUMN marc;
+    });
+    $dbh->do(q{
+        ALTER TABLE deletedbiblioitems DROP COLUMN marc;
+    });
+
+    print "Upgrade to $DBversion done (Bug 10455 - remove redundant 'biblioitems.marc' field)\n";
+    SetVersion($DBversion);
+}
+
+
 
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068