Bug 8480: (RM followup) DBIx updates
[koha-ffzg.git] / Koha / Schema / Result / AuthSubfieldStructure.pm
index 8c16d3e..0ae35a7 100644 (file)
@@ -27,6 +27,7 @@ __PACKAGE__->table("auth_subfield_structure");
 
   data_type: 'varchar'
   default_value: (empty string)
+  is_foreign_key: 1
   is_nullable: 0
   size: 10
 
@@ -133,7 +134,13 @@ __PACKAGE__->table("auth_subfield_structure");
 
 __PACKAGE__->add_columns(
   "authtypecode",
-  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+  {
+    data_type => "varchar",
+    default_value => "",
+    is_foreign_key => 1,
+    is_nullable => 0,
+    size => 10,
+  },
   "tagfield",
   { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
   "tagsubfield",
@@ -184,9 +191,26 @@ __PACKAGE__->add_columns(
 
 __PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
 
+=head1 RELATIONS
+
+=head2 authtypecode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::AuthType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+  "authtypecode",
+  "Koha::Schema::Result::AuthType",
+  { authtypecode => "authtypecode" },
+  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:24BKrmX1lug68+rmXE1riA
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-05-18 11:22:30
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ymm26DwMwBskOjIj1qhWFA
 
 
 # You can replace this text with custom content, and it will be preserved on regeneration