Bug 21082: DBRev 18.06.00.037
[koha_ffzg] / Koha / Schema / Result / Branch.pm
index 1542325..ce3527a 100644 (file)
@@ -1,17 +1,21 @@
+use utf8;
 package Koha::Schema::Result::Branch;
 
 # Created by DBIx::Class::Schema::Loader
 # DO NOT MODIFY THE FIRST PART OF THIS FILE
 
+=head1 NAME
+
+Koha::Schema::Result::Branch
+
+=cut
+
 use strict;
 use warnings;
 
 use base 'DBIx::Class::Core';
 
-
-=head1 NAME
-
-Koha::Schema::Result::Branch
+=head1 TABLE: C<branches>
 
 =cut
 
@@ -28,22 +32,22 @@ __PACKAGE__->table("branches");
 
 =head2 branchname
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 0
 
 =head2 branchaddress1
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchaddress2
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchaddress3
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchzip
@@ -54,37 +58,47 @@ __PACKAGE__->table("branches");
 
 =head2 branchcity
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchstate
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchcountry
 
-  data_type: 'text'
+  data_type: 'mediumtext'
   is_nullable: 1
 
 =head2 branchphone
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchfax
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchemail
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
+  is_nullable: 1
+
+=head2 branchreplyto
+
+  data_type: 'longtext'
+  is_nullable: 1
+
+=head2 branchreturnpath
+
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 branchurl
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 issuing
@@ -106,13 +120,31 @@ __PACKAGE__->table("branches");
 
 =head2 branchnotes
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 opac_info
 
-  data_type: 'text'
+  data_type: 'mediumtext'
+  is_nullable: 1
+
+=head2 geolocation
+
+  data_type: 'varchar'
+  is_nullable: 1
+  size: 255
+
+=head2 marcorgcode
+
+  data_type: 'varchar'
   is_nullable: 1
+  size: 16
+
+=head2 pickup_location
+
+  data_type: 'tinyint'
+  default_value: 1
+  is_nullable: 0
 
 =cut
 
@@ -120,29 +152,33 @@ __PACKAGE__->add_columns(
   "branchcode",
   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
   "branchname",
-  { data_type => "mediumtext", is_nullable => 0 },
+  { data_type => "longtext", is_nullable => 0 },
   "branchaddress1",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "branchaddress2",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "branchaddress3",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "branchzip",
   { data_type => "varchar", is_nullable => 1, size => 25 },
   "branchcity",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "branchstate",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "branchcountry",
-  { data_type => "text", is_nullable => 1 },
-  "branchphone",
   { data_type => "mediumtext", is_nullable => 1 },
+  "branchphone",
+  { data_type => "longtext", is_nullable => 1 },
   "branchfax",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "branchemail",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
+  "branchreplyto",
+  { data_type => "longtext", is_nullable => 1 },
+  "branchreturnpath",
+  { data_type => "longtext", is_nullable => 1 },
   "branchurl",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "issuing",
   { data_type => "tinyint", is_nullable => 1 },
   "branchip",
@@ -150,14 +186,61 @@ __PACKAGE__->add_columns(
   "branchprinter",
   { data_type => "varchar", is_nullable => 1, size => 100 },
   "branchnotes",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "opac_info",
-  { data_type => "text", is_nullable => 1 },
+  { data_type => "mediumtext", is_nullable => 1 },
+  "geolocation",
+  { data_type => "varchar", is_nullable => 1, size => 255 },
+  "marcorgcode",
+  { data_type => "varchar", is_nullable => 1, size => 16 },
+  "pickup_location",
+  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
 );
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</branchcode>
+
+=back
+
+=cut
+
 __PACKAGE__->set_primary_key("branchcode");
 
 =head1 RELATIONS
 
+=head2 aqbaskets
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqbasket>
+
+=cut
+
+__PACKAGE__->has_many(
+  "aqbaskets",
+  "Koha::Schema::Result::Aqbasket",
+  { "foreign.branch" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 article_requests
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ArticleRequest>
+
+=cut
+
+__PACKAGE__->has_many(
+  "article_requests",
+  "Koha::Schema::Result::ArticleRequest",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 authorised_values_branches
 
 Type: has_many
@@ -233,17 +316,17 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
-=head2 branchrelations
+=head2 branches_overdrive
 
-Type: has_many
+Type: might_have
 
-Related object: L<Koha::Schema::Result::Branchrelation>
+Related object: L<Koha::Schema::Result::BranchesOverdrive>
 
 =cut
 
-__PACKAGE__->has_many(
-  "branchrelations",
-  "Koha::Schema::Result::Branchrelation",
+__PACKAGE__->might_have(
+  "branches_overdrive",
+  "Koha::Schema::Result::BranchesOverdrive",
   { "foreign.branchcode" => "self.branchcode" },
   { cascade_copy => 0, cascade_delete => 0 },
 );
@@ -293,6 +376,81 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 circulation_rules
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CirculationRule>
+
+=cut
+
+__PACKAGE__->has_many(
+  "circulation_rules",
+  "Koha::Schema::Result::CirculationRule",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 club_enrollments
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ClubEnrollment>
+
+=cut
+
+__PACKAGE__->has_many(
+  "club_enrollments",
+  "Koha::Schema::Result::ClubEnrollment",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 club_templates
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::ClubTemplate>
+
+=cut
+
+__PACKAGE__->has_many(
+  "club_templates",
+  "Koha::Schema::Result::ClubTemplate",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 clubs
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Club>
+
+=cut
+
+__PACKAGE__->has_many(
+  "clubs",
+  "Koha::Schema::Result::Club",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 collections
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Collection>
+
+=cut
+
+__PACKAGE__->has_many(
+  "collections",
+  "Koha::Schema::Result::Collection",
+  { "foreign.colBranchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 course_items
 
 Type: has_many
@@ -338,6 +496,21 @@ __PACKAGE__->might_have(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 edifact_eans
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::EdifactEan>
+
+=cut
+
+__PACKAGE__->has_many(
+  "edifact_eans",
+  "Koha::Schema::Result::EdifactEan",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 hold_fill_targets
 
 Type: has_many
@@ -353,18 +526,18 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
-=head2 items_homebranches
+=head2 illrequests
 
 Type: has_many
 
-Related object: L<Koha::Schema::Result::Item>
+Related object: L<Koha::Schema::Result::Illrequest>
 
 =cut
 
 __PACKAGE__->has_many(
-  "items_homebranches",
-  "Koha::Schema::Result::Item",
-  { "foreign.homebranch" => "self.branchcode" },
+  "illrequests",
+  "Koha::Schema::Result::Illrequest",
+  { "foreign.branchcode" => "self.branchcode" },
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
@@ -383,6 +556,51 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 items_homebranches
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Item>
+
+=cut
+
+__PACKAGE__->has_many(
+  "items_homebranches",
+  "Koha::Schema::Result::Item",
+  { "foreign.homebranch" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 library_groups
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::LibraryGroup>
+
+=cut
+
+__PACKAGE__->has_many(
+  "library_groups",
+  "Koha::Schema::Result::LibraryGroup",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 opac_news
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OpacNews>
+
+=cut
+
+__PACKAGE__->has_many(
+  "opac_news",
+  "Koha::Schema::Result::OpacNews",
+  { "foreign.branchcode" => "self.branchcode" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 reserves
 
 Type: has_many
@@ -429,9 +647,14 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BS/6xtFAoMSKsXho4IXXjQ
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 10:38:33
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nKWRDScCAwZUDrRhm1kYMA
+
+
+# You can replace this text with custom code or comments, and it will be preserved on regeneration
 
+sub koha_objects_class {
+    'Koha::Libraries';
+}
 
-# You can replace this text with custom content, and it will be preserved on regeneration
 1;