# - #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;
is_nullable: 1
size: 25
-=head2 marc
-
- data_type: 'longblob'
- is_nullable: 1
-
=head2 url
data_type: 'text'
{ 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",
);
-# 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" );
is_nullable: 1
size: 25
-=head2 marc
-
- data_type: 'longblob'
- is_nullable: 1
-
=head2 url
data_type: 'text'
{ 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",
__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
+++ /dev/null
-ALTER TABLE biblioitems DROP COLUMN marc;
-ALTER TABLE deletedbiblioitems DROP COLUMN marc;
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