Bug 20882: DBRev 19.12.00.022
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
5a685aa78f
commit
8aec7aa5fa
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 = "19.12.00.021";
|
||||
$VERSION = "19.12.00.022";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -244,9 +244,8 @@ __PACKAGE__->table("deleteditems");
|
|||
|
||||
=head2 uri
|
||||
|
||||
data_type: 'varchar'
|
||||
data_type: 'mediumtext'
|
||||
is_nullable: 1
|
||||
size: 255
|
||||
|
||||
=head2 itype
|
||||
|
||||
|
|
@ -379,7 +378,7 @@ __PACKAGE__->add_columns(
|
|||
"materials",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"uri",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 255 },
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"itype",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
"more_subfields_xml",
|
||||
|
|
@ -407,8 +406,8 @@ __PACKAGE__->add_columns(
|
|||
__PACKAGE__->set_primary_key("itemnumber");
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-26 16:15:09
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L7G0HG5gvgyhfpKb7LcUFw
|
||||
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-17 10:42:24
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1+z3OHx5OpOcP82k8vyAaA
|
||||
|
||||
sub koha_objects_class {
|
||||
'Koha::Old::Items';
|
||||
|
|
|
|||
|
|
@ -248,9 +248,8 @@ __PACKAGE__->table("items");
|
|||
|
||||
=head2 uri
|
||||
|
||||
data_type: 'varchar'
|
||||
data_type: 'mediumtext'
|
||||
is_nullable: 1
|
||||
size: 255
|
||||
|
||||
=head2 itype
|
||||
|
||||
|
|
@ -393,7 +392,7 @@ __PACKAGE__->add_columns(
|
|||
"materials",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"uri",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 255 },
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"itype",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
"more_subfields_xml",
|
||||
|
|
@ -747,8 +746,8 @@ __PACKAGE__->has_many(
|
|||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-10 14:31:00
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dqUjo9pJysKKBhF8PM5KnA
|
||||
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-17 10:42:24
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CcrMhgq+PQ1MHV6jZEN8wA
|
||||
|
||||
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do( "ALTER TABLE items MODIFY COLUMN uri MEDIUMTEXT" );
|
||||
$dbh->do( "ALTER TABLE deleteditems MODIFY COLUMN uri MEDIUMTEXT" );
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 20882 - items.uri to MEDIUMTEXT)\n";
|
||||
}
|
||||
|
|
@ -20808,6 +20808,15 @@ if( CheckVersion( $DBversion ) ) {
|
|||
print "Upgrade to $DBversion done (Bug 24592 - Update LOST_RETURN to LOST_FOUND)\n";
|
||||
}
|
||||
|
||||
$DBversion = '19.12.00.022';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do( "ALTER TABLE items MODIFY COLUMN uri MEDIUMTEXT" );
|
||||
$dbh->do( "ALTER TABLE deleteditems MODIFY COLUMN uri MEDIUMTEXT" );
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 20882 - items.uri to MEDIUMTEXT)\n";
|
||||
}
|
||||
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';
|
||||
|
|
|
|||
Loading…
Reference in New Issue