Bug 10455 - DBRev 16.06.00.034

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle Hall 2016-10-21 14:37:46 +00:00
parent 47b6f454ab
commit 35101c9127
5 changed files with 19 additions and 21 deletions

View file

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion. # - #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 # used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed. # and is automatically called by Auth.pm when needed.
$VERSION = "16.06.00.033"; $VERSION = "16.06.00.034";
sub version { sub version {
return $VERSION; return $VERSION;

View file

@ -157,11 +157,6 @@ __PACKAGE__->table("biblioitems");
is_nullable: 1 is_nullable: 1
size: 25 size: 25
=head2 marc
data_type: 'longblob'
is_nullable: 1
=head2 url =head2 url
data_type: 'text' data_type: 'text'
@ -274,8 +269,6 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 }, { data_type => "varchar", is_nullable => 1, size => 255 },
"lccn", "lccn",
{ data_type => "varchar", is_nullable => 1, size => 25 }, { data_type => "varchar", is_nullable => 1, size => 25 },
"marc",
{ data_type => "longblob", is_nullable => 1 },
"url", "url",
{ data_type => "text", is_nullable => 1 }, { data_type => "text", is_nullable => 1 },
"cn_source", "cn_source",
@ -341,8 +334,8 @@ __PACKAGE__->has_many(
); );
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-24 14:19:57 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A/4lKYlKWWd8TcMVzMRtCg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sIIeEpbe61VNkEYpUXNDkw
__PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" ); __PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );

View file

@ -156,11 +156,6 @@ __PACKAGE__->table("deletedbiblioitems");
is_nullable: 1 is_nullable: 1
size: 25 size: 25
=head2 marc
data_type: 'longblob'
is_nullable: 1
=head2 url =head2 url
data_type: 'text' data_type: 'text'
@ -268,8 +263,6 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 }, { data_type => "varchar", is_nullable => 1, size => 255 },
"lccn", "lccn",
{ data_type => "varchar", is_nullable => 1, size => 25 }, { data_type => "varchar", is_nullable => 1, size => 25 },
"marc",
{ data_type => "longblob", is_nullable => 1 },
"url", "url",
{ data_type => "text", is_nullable => 1 }, { data_type => "text", is_nullable => 1 },
"cn_source", "cn_source",
@ -303,8 +296,8 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("biblioitemnumber"); __PACKAGE__->set_primary_key("biblioitemnumber");
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-24 14:19:57 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RTMXhtMKvih1zhllHwwwYQ # 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 # You can replace this text with custom content, and it will be preserved on regeneration

View file

@ -1,2 +0,0 @@
ALTER TABLE biblioitems DROP COLUMN marc;
ALTER TABLE deletedbiblioitems DROP COLUMN marc;

View file

@ -13181,6 +13181,20 @@ if ( CheckVersion($DBversion) ) {
SetVersion($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 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068 # SEE bug 13068