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

(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (-3 / +24 lines)
Lines 98-103 defines if this field displays in checkout screens Link Here
98
=head2 category_code
98
=head2 category_code
99
99
100
  data_type: 'varchar'
100
  data_type: 'varchar'
101
  is_foreign_key: 1
101
  is_nullable: 1
102
  is_nullable: 1
102
  size: 10
103
  size: 10
103
104
Lines 150-156 __PACKAGE__->add_columns( Link Here
150
  "display_checkout",
151
  "display_checkout",
151
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
152
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
152
  "category_code",
153
  "category_code",
153
  { data_type => "varchar", is_nullable => 1, size => 10 },
154
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
154
  "class",
155
  "class",
155
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
156
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
156
  "keep_for_pseudonymization",
157
  "keep_for_pseudonymization",
Lines 203-208 __PACKAGE__->has_many( Link Here
203
  { cascade_copy => 0, cascade_delete => 0 },
204
  { cascade_copy => 0, cascade_delete => 0 },
204
);
205
);
205
206
207
=head2 category_code
208
209
Type: belongs_to
210
211
Related object: L<Koha::Schema::Result::Category>
212
213
=cut
214
215
__PACKAGE__->belongs_to(
216
  "category_code",
217
  "Koha::Schema::Result::Category",
218
  { categorycode => "category_code" },
219
  {
220
    is_deferrable => 1,
221
    join_type     => "LEFT",
222
    on_delete     => "RESTRICT",
223
    on_update     => "RESTRICT",
224
  },
225
);
226
206
=head2 pseudonymized_borrower_attributes
227
=head2 pseudonymized_borrower_attributes
207
228
208
Type: has_many
229
Type: has_many
Lines 219-226 __PACKAGE__->has_many( Link Here
219
);
240
);
220
241
221
242
222
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
243
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-25 12:50:55
223
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a/IA2iqSJqg3oOS+o1nXFg
244
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VgJP4Ugfz0sN3YoJk/tshA
224
245
225
__PACKAGE__->add_columns(
246
__PACKAGE__->add_columns(
226
    '+keep_for_pseudonymization' => { is_boolean => 1 },
247
    '+keep_for_pseudonymization' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Category.pm (-3 / +17 lines)
Lines 268-273 __PACKAGE__->set_primary_key("categorycode"); Link Here
268
268
269
=head1 RELATIONS
269
=head1 RELATIONS
270
270
271
=head2 borrower_attribute_types
272
273
Type: has_many
274
275
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
276
277
=cut
278
279
__PACKAGE__->has_many(
280
  "borrower_attribute_types",
281
  "Koha::Schema::Result::BorrowerAttributeType",
282
  { "foreign.category_code" => "self.categorycode" },
283
  { cascade_copy => 0, cascade_delete => 0 },
284
);
285
271
=head2 borrower_message_preferences
286
=head2 borrower_message_preferences
272
287
273
Type: has_many
288
Type: has_many
Lines 329-336 __PACKAGE__->has_many( Link Here
329
);
344
);
330
345
331
346
332
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-19 14:20:11
347
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-25 12:50:56
333
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xrnHXXv5sd3S2sMEKzHLmA
348
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vEpp1HRkUOvPyWd/yAsxng
334
349
335
__PACKAGE__->add_columns(
350
__PACKAGE__->add_columns(
336
    '+exclude_from_local_holds_priority' => { is_boolean => 1 },
351
    '+exclude_from_local_holds_priority' => { is_boolean => 1 },
337
- 

Return to bug 30449