From cf2c319974df819afba23e5225933cf683248e10 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 29 Sep 2018 18:30:55 -0300 Subject: [PATCH] Bug 18925: Update schema files --- Koha/Schema/Result/Branch.pm | 19 +---- Koha/Schema/Result/BranchBorrowerCircRule.pm | 115 -------------------------- Koha/Schema/Result/Category.pm | 34 +------- Koha/Schema/Result/DefaultBorrowerCircRule.pm | 89 -------------------- Koha/Schema/Result/DefaultBranchCircRule.pm | 18 +--- Koha/Schema/Result/DefaultCircRule.pm | 18 +--- Koha/Schema/Result/Issuingrule.pm | 18 +--- 7 files changed, 10 insertions(+), 301 deletions(-) delete mode 100644 Koha/Schema/Result/BranchBorrowerCircRule.pm delete mode 100644 Koha/Schema/Result/DefaultBorrowerCircRule.pm diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index c3e471bb52..ab386959b3 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -286,21 +286,6 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 branch_borrower_circ_rules - -Type: has_many - -Related object: L - -=cut - -__PACKAGE__->has_many( - "branch_borrower_circ_rules", - "Koha::Schema::Result::BranchBorrowerCircRule", - { "foreign.branchcode" => "self.branchcode" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - =head2 branch_item_rules Type: has_many @@ -632,8 +617,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TdCV8mkKeahtG+DifEIH5A +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:18 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RIjGb7xn9jDkedtXdphUPA # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/BranchBorrowerCircRule.pm b/Koha/Schema/Result/BranchBorrowerCircRule.pm deleted file mode 100644 index c56cfe7181..0000000000 --- a/Koha/Schema/Result/BranchBorrowerCircRule.pm +++ /dev/null @@ -1,115 +0,0 @@ -use utf8; -package Koha::Schema::Result::BranchBorrowerCircRule; - -# Created by DBIx::Class::Schema::Loader -# DO NOT MODIFY THE FIRST PART OF THIS FILE - -=head1 NAME - -Koha::Schema::Result::BranchBorrowerCircRule - -=cut - -use strict; -use warnings; - -use base 'DBIx::Class::Core'; - -=head1 TABLE: C - -=cut - -__PACKAGE__->table("branch_borrower_circ_rules"); - -=head1 ACCESSORS - -=head2 branchcode - - data_type: 'varchar' - is_foreign_key: 1 - is_nullable: 0 - size: 10 - -=head2 categorycode - - data_type: 'varchar' - is_foreign_key: 1 - is_nullable: 0 - size: 10 - -=head2 maxissueqty - - data_type: 'integer' - is_nullable: 1 - -=head2 maxonsiteissueqty - - data_type: 'integer' - is_nullable: 1 - -=cut - -__PACKAGE__->add_columns( - "branchcode", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, - "categorycode", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, - "maxissueqty", - { data_type => "integer", is_nullable => 1 }, - "maxonsiteissueqty", - { data_type => "integer", is_nullable => 1 }, -); - -=head1 PRIMARY KEY - -=over 4 - -=item * L - -=item * L - -=back - -=cut - -__PACKAGE__->set_primary_key("categorycode", "branchcode"); - -=head1 RELATIONS - -=head2 branchcode - -Type: belongs_to - -Related object: L - -=cut - -__PACKAGE__->belongs_to( - "branchcode", - "Koha::Schema::Result::Branch", - { branchcode => "branchcode" }, - { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, -); - -=head2 categorycode - -Type: belongs_to - -Related object: L - -=cut - -__PACKAGE__->belongs_to( - "categorycode", - "Koha::Schema::Result::Category", - { categorycode => "categorycode" }, - { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, -); - - -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+MNZAKqU6GDK/Bslt9cR4g - - -# You can replace this text with custom content, and it will be preserved on regeneration -1; diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index 9cd2caab3c..1a27213448 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -221,21 +221,6 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 branch_borrower_circ_rules - -Type: has_many - -Related object: L - -=cut - -__PACKAGE__->has_many( - "branch_borrower_circ_rules", - "Koha::Schema::Result::BranchBorrowerCircRule", - { "foreign.categorycode" => "self.categorycode" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - =head2 categories_branches Type: has_many @@ -266,24 +251,9 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 default_borrower_circ_rule - -Type: might_have - -Related object: L - -=cut - -__PACKAGE__->might_have( - "default_borrower_circ_rule", - "Koha::Schema::Result::DefaultBorrowerCircRule", - { "foreign.categorycode" => "self.categorycode" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I3VQpfQsul8S/g9DZJrCLA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:75bm1do9pImxriV4qzP2Ng # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/DefaultBorrowerCircRule.pm b/Koha/Schema/Result/DefaultBorrowerCircRule.pm deleted file mode 100644 index 2672647238..0000000000 --- a/Koha/Schema/Result/DefaultBorrowerCircRule.pm +++ /dev/null @@ -1,89 +0,0 @@ -use utf8; -package Koha::Schema::Result::DefaultBorrowerCircRule; - -# Created by DBIx::Class::Schema::Loader -# DO NOT MODIFY THE FIRST PART OF THIS FILE - -=head1 NAME - -Koha::Schema::Result::DefaultBorrowerCircRule - -=cut - -use strict; -use warnings; - -use base 'DBIx::Class::Core'; - -=head1 TABLE: C - -=cut - -__PACKAGE__->table("default_borrower_circ_rules"); - -=head1 ACCESSORS - -=head2 categorycode - - data_type: 'varchar' - is_foreign_key: 1 - is_nullable: 0 - size: 10 - -=head2 maxissueqty - - data_type: 'integer' - is_nullable: 1 - -=head2 maxonsiteissueqty - - data_type: 'integer' - is_nullable: 1 - -=cut - -__PACKAGE__->add_columns( - "categorycode", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, - "maxissueqty", - { data_type => "integer", is_nullable => 1 }, - "maxonsiteissueqty", - { data_type => "integer", is_nullable => 1 }, -); - -=head1 PRIMARY KEY - -=over 4 - -=item * L - -=back - -=cut - -__PACKAGE__->set_primary_key("categorycode"); - -=head1 RELATIONS - -=head2 categorycode - -Type: belongs_to - -Related object: L - -=cut - -__PACKAGE__->belongs_to( - "categorycode", - "Koha::Schema::Result::Category", - { categorycode => "categorycode" }, - { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, -); - - -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R0Yg31SdKMhs7wUyetMtTA - - -# You can replace this text with custom content, and it will be preserved on regeneration -1; diff --git a/Koha/Schema/Result/DefaultBranchCircRule.pm b/Koha/Schema/Result/DefaultBranchCircRule.pm index 776b0e4b44..4c009cdaaf 100644 --- a/Koha/Schema/Result/DefaultBranchCircRule.pm +++ b/Koha/Schema/Result/DefaultBranchCircRule.pm @@ -30,16 +30,6 @@ __PACKAGE__->table("default_branch_circ_rules"); is_nullable: 0 size: 10 -=head2 maxissueqty - - data_type: 'integer' - is_nullable: 1 - -=head2 maxonsiteissueqty - - data_type: 'integer' - is_nullable: 1 - =head2 holdallowed data_type: 'tinyint' @@ -63,10 +53,6 @@ __PACKAGE__->table("default_branch_circ_rules"); __PACKAGE__->add_columns( "branchcode", { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, - "maxissueqty", - { data_type => "integer", is_nullable => 1 }, - "maxonsiteissueqty", - { data_type => "integer", is_nullable => 1 }, "holdallowed", { data_type => "tinyint", is_nullable => 1 }, "hold_fulfillment_policy", @@ -110,8 +96,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wnrxD1/tp8X01YHmys02lg +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yndlRKQ2/PiuVTwxcWcKaw # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/DefaultCircRule.pm b/Koha/Schema/Result/DefaultCircRule.pm index 355f4ea385..3e162c23ef 100644 --- a/Koha/Schema/Result/DefaultCircRule.pm +++ b/Koha/Schema/Result/DefaultCircRule.pm @@ -30,16 +30,6 @@ __PACKAGE__->table("default_circ_rules"); extra: {list => ["singleton"]} is_nullable: 0 -=head2 maxissueqty - - data_type: 'integer' - is_nullable: 1 - -=head2 maxonsiteissueqty - - data_type: 'integer' - is_nullable: 1 - =head2 holdallowed data_type: 'integer' @@ -68,10 +58,6 @@ __PACKAGE__->add_columns( extra => { list => ["singleton"] }, is_nullable => 0, }, - "maxissueqty", - { data_type => "integer", is_nullable => 1 }, - "maxonsiteissueqty", - { data_type => "integer", is_nullable => 1 }, "holdallowed", { data_type => "integer", is_nullable => 1 }, "hold_fulfillment_policy", @@ -98,8 +84,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("singleton"); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fqBrj0c9h9c0eBlC0kG51w +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gK31uDEPhVm6AyqjhQ6HAg # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Issuingrule.pm b/Koha/Schema/Result/Issuingrule.pm index 5958055104..fa4efb65a4 100644 --- a/Koha/Schema/Result/Issuingrule.pm +++ b/Koha/Schema/Result/Issuingrule.pm @@ -103,16 +103,6 @@ __PACKAGE__->table("issuingrules"); is_nullable: 1 size: 100 -=head2 maxissueqty - - data_type: 'integer' - is_nullable: 1 - -=head2 maxonsiteissueqty - - data_type: 'integer' - is_nullable: 1 - =head2 issuelength data_type: 'integer' @@ -252,10 +242,6 @@ __PACKAGE__->add_columns( { data_type => "integer", is_nullable => 1 }, "chargename", { data_type => "varchar", is_nullable => 1, size => 100 }, - "maxissueqty", - { data_type => "integer", is_nullable => 1 }, - "maxonsiteissueqty", - { data_type => "integer", is_nullable => 1 }, "issuelength", { data_type => "integer", is_nullable => 1 }, "lengthunit", @@ -321,8 +307,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype"); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-12-13 12:44:30 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VBD8atc/D/6rN0D+aTaSOQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kkaZQ8a9rMpBvjHn8ERKWQ # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.11.0