From 27a0e22440d348d29a5dac20215c9a2a9cdcd808 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Mon, 21 Sep 2015 14:40:08 +1200 Subject: [PATCH] Catching up dbix updates --- Koha/Schema/Result/AuthorisedValue.pm | 133 ++++++++++++++- Koha/Schema/Result/BorrowerAttributeType.pm | 179 ++++++++++++++++++++ Koha/Schema/Result/ItemsSearchField.pm | 8 +- 3 files changed, 312 insertions(+), 8 deletions(-) diff --git a/Koha/Schema/Result/AuthorisedValue.pm b/Koha/Schema/Result/AuthorisedValue.pm index 3cd8cce6fd..d887c08bf7 100644 --- a/Koha/Schema/Result/AuthorisedValue.pm +++ b/Koha/Schema/Result/AuthorisedValue.pm @@ -34,7 +34,7 @@ __PACKAGE__->table("authorised_values"); data_type: 'varchar' default_value: (empty string) is_nullable: 0 - size: 16 + size: 32 =head2 authorised_value @@ -67,7 +67,7 @@ __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "category", - { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 }, "authorised_value", { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 }, "lib", @@ -123,8 +123,133 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-04 19:23:41 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aaIEvlA6wPG2o0Zx2JGk6A +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-21 14:39:14 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rstzr/ViH5Mxzbu0fMF8pg +# These lines were loaded from '/home/liz/koha-src/koha/Koha/Schema/Result/AuthorisedValue.pm' found in @INC. +# They are now part of the custom portion of this file +# for you to hand-edit. If you do not either delete +# this section or remove that file from @INC, this section +# will be repeated redundantly when you re-create this +# file again via Loader! See skip_load_external to disable +# this feature. + +use utf8; +package Koha::Schema::Result::AuthorisedValue; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::AuthorisedValue + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("authorised_values"); + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 category + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 16 + +=head2 authorised_value + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 80 + +=head2 lib + + data_type: 'varchar' + is_nullable: 1 + size: 200 + +=head2 lib_opac + + data_type: 'varchar' + is_nullable: 1 + size: 200 + +=head2 imageurl + + data_type: 'varchar' + is_nullable: 1 + size: 200 + +=cut + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "category", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, + "authorised_value", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 }, + "lib", + { data_type => "varchar", is_nullable => 1, size => 200 }, + "lib_opac", + { data_type => "varchar", is_nullable => 1, size => 200 }, + "imageurl", + { data_type => "varchar", is_nullable => 1, size => 200 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("id"); + +=head1 RELATIONS + +=head2 authorised_values_branches + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "authorised_values_branches", + "Koha::Schema::Result::AuthorisedValuesBranch", + { "foreign.av_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N6Q7Y4sHL03X170zJ3APUA + + +# You can replace this text with custom content, and it will be preserved on regeneration +1; +# End of lines loaded from '/home/liz/koha-src/koha/Koha/Schema/Result/AuthorisedValue.pm' # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm index f2f51202cf..fd64ffb396 100644 --- a/Koha/Schema/Result/BorrowerAttributeType.pm +++ b/Koha/Schema/Result/BorrowerAttributeType.pm @@ -23,6 +23,180 @@ __PACKAGE__->table("borrower_attribute_types"); =head1 ACCESSORS +=head2 code + + data_type: 'varchar' + is_nullable: 0 + size: 10 + +=head2 description + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 repeatable + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 unique_id + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 opac_display + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 password_allowed + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 staff_searchable + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 authorised_value_category + + data_type: 'varchar' + is_nullable: 1 + size: 32 + +=head2 display_checkout + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 category_code + + data_type: 'varchar' + is_nullable: 1 + size: 10 + +=head2 class + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=cut + +__PACKAGE__->add_columns( + "code", + { data_type => "varchar", is_nullable => 0, size => 10 }, + "description", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "repeatable", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "unique_id", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "opac_display", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "password_allowed", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "staff_searchable", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "authorised_value_category", + { data_type => "varchar", is_nullable => 1, size => 32 }, + "display_checkout", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "category_code", + { data_type => "varchar", is_nullable => 1, size => 10 }, + "class", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("code"); + +=head1 RELATIONS + +=head2 borrower_attribute_types_branches + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "borrower_attribute_types_branches", + "Koha::Schema::Result::BorrowerAttributeTypesBranch", + { "foreign.bat_code" => "self.code" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 borrower_attributes + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "borrower_attributes", + "Koha::Schema::Result::BorrowerAttribute", + { "foreign.code" => "self.code" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-21 14:39:14 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2p+93yKRj0PPqZLu7p9IFw +# These lines were loaded from '/home/liz/koha-src/koha/Koha/Schema/Result/BorrowerAttributeType.pm' found in @INC. +# They are now part of the custom portion of this file +# for you to hand-edit. If you do not either delete +# this section or remove that file from @INC, this section +# will be repeated redundantly when you re-create this +# file again via Loader! See skip_load_external to disable +# this feature. + +use utf8; +package Koha::Schema::Result::BorrowerAttributeType; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::BorrowerAttributeType + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("borrower_attribute_types"); + +=head1 ACCESSORS + =head2 code data_type: 'varchar' @@ -166,5 +340,10 @@ __PACKAGE__->has_many( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xFtIJw7nKVVk6dzBVDO60A +# You can replace this text with custom content, and it will be preserved on regeneration +1; +# End of lines loaded from '/home/liz/koha-src/koha/Koha/Schema/Result/BorrowerAttributeType.pm' + + # You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ItemsSearchField.pm b/Koha/Schema/Result/ItemsSearchField.pm index 876023cb0b..b6054fa326 100644 --- a/Koha/Schema/Result/ItemsSearchField.pm +++ b/Koha/Schema/Result/ItemsSearchField.pm @@ -52,7 +52,7 @@ __PACKAGE__->table("items_search_fields"); data_type: 'varchar' is_foreign_key: 1 is_nullable: 1 - size: 16 + size: 32 =cut @@ -66,7 +66,7 @@ __PACKAGE__->add_columns( "tagsubfield", { data_type => "char", is_nullable => 1, size => 1 }, "authorised_values_category", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 16 }, + { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 32 }, ); =head1 PRIMARY KEY @@ -104,8 +104,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-04 19:23:41 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4zpzfz1VNYNVM5M/btiPOA +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-21 14:39:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7lZrYzEQV0obIREYtAjFEA # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.39.5