Bug 5458: DBRev 18.06.00.032
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
c59ef0452c
commit
b5becc84f5
8 changed files with 31 additions and 25 deletions
2
Koha.pm
2
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.06.00.031";
|
||||
$VERSION = "18.06.00.032";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
@ -54,7 +54,7 @@ __PACKAGE__->table("branch_transfer_limits");
|
|||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 10
|
||||
size: 80
|
||||
|
||||
=cut
|
||||
|
||||
|
@ -83,7 +83,7 @@ __PACKAGE__->add_columns(
|
|||
"itemtype",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
"ccode",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
{ data_type => "varchar", is_nullable => 1, size => 80 },
|
||||
);
|
||||
|
||||
=head1 PRIMARY KEY
|
||||
|
@ -99,8 +99,8 @@ __PACKAGE__->add_columns(
|
|||
__PACKAGE__->set_primary_key("limitId");
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XPpJwcw5PRa7Fo7PRg32zg
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-26 16:15:09
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wKere4dleMGrs9RO59qx9Q
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
|
@ -45,7 +45,7 @@ __PACKAGE__->table("course_items");
|
|||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 10
|
||||
size: 80
|
||||
|
||||
=head2 holdingbranch
|
||||
|
||||
|
@ -84,7 +84,7 @@ __PACKAGE__->add_columns(
|
|||
"itype",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
"ccode",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
{ data_type => "varchar", is_nullable => 1, size => 80 },
|
||||
"holdingbranch",
|
||||
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
|
||||
"location",
|
||||
|
@ -184,8 +184,8 @@ __PACKAGE__->belongs_to(
|
|||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-02 09:46:54
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g5lEeHNvnM4KIb6AJUxDOw
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-26 16:15:09
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0hBp2R7AMxgHLLZcG/676w
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
|
@ -235,7 +235,7 @@ __PACKAGE__->table("deleteditems");
|
|||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 10
|
||||
size: 80
|
||||
|
||||
=head2 materials
|
||||
|
||||
|
@ -375,7 +375,7 @@ __PACKAGE__->add_columns(
|
|||
"cn_sort",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 255 },
|
||||
"ccode",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
{ data_type => "varchar", is_nullable => 1, size => 80 },
|
||||
"materials",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"uri",
|
||||
|
@ -407,8 +407,8 @@ __PACKAGE__->add_columns(
|
|||
__PACKAGE__->set_primary_key("itemnumber");
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-18 16:41:11
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xb11fPjp5PyXU7yfFWHycw
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-26 16:15:09
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L7G0HG5gvgyhfpKb7LcUFw
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
|
@ -239,7 +239,7 @@ __PACKAGE__->table("items");
|
|||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 10
|
||||
size: 80
|
||||
|
||||
=head2 materials
|
||||
|
||||
|
@ -389,7 +389,7 @@ __PACKAGE__->add_columns(
|
|||
"cn_sort",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 255 },
|
||||
"ccode",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
{ data_type => "varchar", is_nullable => 1, size => 80 },
|
||||
"materials",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"uri",
|
||||
|
@ -687,8 +687,8 @@ __PACKAGE__->might_have(
|
|||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-18 16:41:12
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CrNXvpDUvvcuPZK2Gfzs/Q
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-26 16:15:09
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d5sg0dXWdq0NkHsYchyUyw
|
||||
|
||||
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ __PACKAGE__->table("statistics");
|
|||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 10
|
||||
size: 80
|
||||
|
||||
=cut
|
||||
|
||||
|
@ -129,12 +129,12 @@ __PACKAGE__->add_columns(
|
|||
"associatedborrower",
|
||||
{ data_type => "integer", is_nullable => 1 },
|
||||
"ccode",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
{ data_type => "varchar", is_nullable => 1, size => 80 },
|
||||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RI3X/GXlBlUEgG0oxToIIA
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-26 16:15:09
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OECp3uSP488L8TUoS1HseQ
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
ALTER TABLE items CHANGE COLUMN ccode ccode varchar(80) default NULL;
|
||||
ALTER TABLE deleteditems CHANGE COLUMN ccode ccode varchar(80) default NULL;
|
||||
ALTER TABLE branch_transfer_limits CHANGE COLUMN ccode ccode varchar(80) default NULL;
|
||||
ALTER TABLE course_items CHANGE COLUMN ccode ccode varchar(80) default NULL;
|
|
@ -16443,6 +16443,16 @@ INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, ty
|
|||
print "Upgrade to $DBversion done (Bug 20819: Add patron_consent)\n";
|
||||
}
|
||||
|
||||
$DBversion = '18.06.00.032';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do(q|ALTER TABLE items CHANGE COLUMN ccode ccode varchar(80) default NULL|);
|
||||
$dbh->do(q|ALTER TABLE deleteditems CHANGE COLUMN ccode ccode varchar(80) default NULL|);
|
||||
$dbh->do(q|ALTER TABLE branch_transfer_limits CHANGE COLUMN ccode ccode varchar(80) default NULL|);
|
||||
$dbh->do(q|ALTER TABLE course_items CHANGE COLUMN ccode ccode varchar(80) default NULL|);
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 5458: length of items.ccode disagrees with authorised_values.authorised_value)\n";
|
||||
}
|
||||
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
|
||||
|
|
Loading…
Reference in a new issue