View | Details | Raw Unified | Return to bug 17216
Collapse All | Expand All

(-)a/Koha/Schema/Result/AuthorisedValueCategory.pm (-2 / +17 lines)
Lines 81-89 __PACKAGE__->has_many( Link Here
81
  { cascade_copy => 0, cascade_delete => 0 },
81
  { cascade_copy => 0, cascade_delete => 0 },
82
);
82
);
83
83
84
=head2 marc_subfield_structures
84
85
85
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-30 11:54:19
86
Type: has_many
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T8LzWM/O8zSGpRhTZbzvJA
87
88
Related object: L<Koha::Schema::Result::MarcSubfieldStructure>
89
90
=cut
91
92
__PACKAGE__->has_many(
93
  "marc_subfield_structures",
94
  "Koha::Schema::Result::MarcSubfieldStructure",
95
  { "foreign.authorised_value" => "self.category_name" },
96
  { cascade_copy => 0, cascade_delete => 0 },
97
);
98
99
100
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-30 11:59:31
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6vToj9pUcIv8Jio38rNE4g
87
102
88
103
89
# You can replace this text with custom code or comments, and it will be preserved on regeneration
104
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MarcSubfieldStructure.pm (-5 / +27 lines)
Lines 77-84 __PACKAGE__->table("marc_subfield_structure"); Link Here
77
=head2 authorised_value
77
=head2 authorised_value
78
78
79
  data_type: 'varchar'
79
  data_type: 'varchar'
80
  is_foreign_key: 1
80
  is_nullable: 1
81
  is_nullable: 1
81
  size: 20
82
  size: 32
82
83
83
=head2 authtypecode
84
=head2 authtypecode
84
85
Lines 152-158 __PACKAGE__->add_columns( Link Here
152
  "tab",
153
  "tab",
153
  { data_type => "tinyint", is_nullable => 1 },
154
  { data_type => "tinyint", is_nullable => 1 },
154
  "authorised_value",
155
  "authorised_value",
155
  { data_type => "varchar", is_nullable => 1, size => 20 },
156
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 32 },
156
  "authtypecode",
157
  "authtypecode",
157
  { data_type => "varchar", is_nullable => 1, size => 20 },
158
  { data_type => "varchar", is_nullable => 1, size => 20 },
158
  "value_builder",
159
  "value_builder",
Lines 189-197 __PACKAGE__->add_columns( Link Here
189
190
190
__PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
191
__PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
191
192
193
=head1 RELATIONS
194
195
=head2 authorised_value
196
197
Type: belongs_to
198
199
Related object: L<Koha::Schema::Result::AuthorisedValueCategory>
200
201
=cut
202
203
__PACKAGE__->belongs_to(
204
  "authorised_value",
205
  "Koha::Schema::Result::AuthorisedValueCategory",
206
  { category_name => "authorised_value" },
207
  {
208
    is_deferrable => 1,
209
    join_type     => "LEFT",
210
    on_delete     => "SET NULL",
211
    on_update     => "CASCADE",
212
  },
213
);
214
192
215
193
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
216
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-30 11:59:32
194
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4JgqkPKFNSQ90hTeeb30ow
217
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/gnyZuGje+sg82HfxMLI0g
195
218
196
219
197
# You can replace this text with custom content, and it will be preserved on regeneration
220
# You can replace this text with custom content, and it will be preserved on regeneration
198
- 

Return to bug 17216