From bb5a34360a59ee245cdf0700e541e589e763127a Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Sun, 5 Apr 2020 14:16:17 +0000 Subject: [PATCH] Bug 26814: Schema changes Sponsored-by: The National Library of Finland --- Koha/Schema/Result/CirculationRule.pm | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/Koha/Schema/Result/CirculationRule.pm b/Koha/Schema/Result/CirculationRule.pm index 80e6cc2d5a..de4c3b6e25 100644 --- a/Koha/Schema/Result/CirculationRule.pm +++ b/Koha/Schema/Result/CirculationRule.pm @@ -36,6 +36,11 @@ __PACKAGE__->table("circulation_rules"); is_nullable: 1 size: 10 +=head2 onsite_checkout + + data_type: 'integer' + is_nullable: 1 + =head2 categorycode data_type: 'varchar' @@ -69,6 +74,8 @@ __PACKAGE__->add_columns( { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "branchcode", { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, + "onsite_checkout", + { data_type => "integer", is_nullable => 1 }, "categorycode", { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, "itemtype", @@ -99,6 +106,8 @@ __PACKAGE__->set_primary_key("id"); =item * L +=item * L + =item * L =item * L @@ -111,7 +120,13 @@ __PACKAGE__->set_primary_key("id"); __PACKAGE__->add_unique_constraint( "branchcode", - ["branchcode", "categorycode", "itemtype", "rule_name"], + [ + "branchcode", + "onsite_checkout", + "categorycode", + "itemtype", + "rule_name", + ], ); =head1 RELATIONS @@ -177,8 +192,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-05 14:29:17 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QHMqvrtX0ohJe70PHUYZ0Q +# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-10-23 00:02:27 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x+mCm8UV/jVMDEgDSED8Ig sub koha_objects_class { 'Koha::CirculationRules'; -- 2.17.1