From 24f35c4e037f7f1bd73b5af0655307a47187ff40 Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Mon, 10 Jul 2017 12:39:56 +0000 Subject: [PATCH] Bug 18922: Dbix updates This is the dbix update so you don't have to run the script. --- Koha/Schema/Result/Biblioitem.pm | 12 ++++++++++-- Koha/Schema/Result/Review.pm | 25 +++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Biblioitem.pm b/Koha/Schema/Result/Biblioitem.pm index fcc9676..11c8df4 100644 --- a/Koha/Schema/Result/Biblioitem.pm +++ b/Koha/Schema/Result/Biblioitem.pm @@ -203,6 +203,12 @@ __PACKAGE__->table("biblioitems"); data_type: 'integer' is_nullable: 1 +=head2 last_mana_update + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -280,6 +286,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 255 }, "totalissues", { data_type => "integer", is_nullable => 1 }, + "last_mana_update", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -327,8 +335,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cAlg2aIZ7hxeq+Hgl1AJcA +# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-07-04 15:28:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CYMMpHcvFwn0hMdmRQsELA __PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" ); diff --git a/Koha/Schema/Result/Review.pm b/Koha/Schema/Result/Review.pm index 326d708..4536ecb 100644 --- a/Koha/Schema/Result/Review.pm +++ b/Koha/Schema/Result/Review.pm @@ -63,6 +63,11 @@ __PACKAGE__->table("reviews"); data_type: 'integer' is_nullable: 1 +=head2 mana_id + + data_type: 'integer' + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -84,6 +89,8 @@ __PACKAGE__->add_columns( }, "share_auth", { data_type => "integer", is_nullable => 1 }, + "mana_id", + { data_type => "integer", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -98,6 +105,20 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("reviewid"); +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->add_unique_constraint("mana_id", ["mana_id"]); + =head1 RELATIONS =head2 biblionumber @@ -141,8 +162,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-07-04 13:26:58 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PXakyUIfMDbtvEf0fkBeug +# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-07-04 15:28:16 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZQbkATMfvd34ijVgNenjNg # You can replace this text with custom content, and it will be preserved on regeneration -- 2.7.4