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

(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 860-865 __PACKAGE__->has_many( Link Here
860
  { cascade_copy => 0, cascade_delete => 0 },
860
  { cascade_copy => 0, cascade_delete => 0 },
861
);
861
);
862
862
863
=head2 overduerules
864
865
Type: has_many
866
867
Related object: L<Koha::Schema::Result::Overduerule>
868
869
=cut
870
871
__PACKAGE__->has_many(
872
  "overduerules",
873
  "Koha::Schema::Result::Overduerule",
874
  { "foreign.branchcode" => "self.branchcode" },
875
  { cascade_copy => 0, cascade_delete => 0 },
876
);
877
863
=head2 problem_reports
878
=head2 problem_reports
864
879
865
Type: has_many
880
Type: has_many
Lines 996-1003 __PACKAGE__->has_many( Link Here
996
);
1011
);
997
1012
998
1013
999
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25
1014
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-11-13 15:03:12
1000
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A
1015
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KGc+KpEDo/pAGumD8qZlaQ
1001
1016
1002
__PACKAGE__->has_many(
1017
__PACKAGE__->has_many(
1003
    "additional_field_values",
1018
    "additional_field_values",
(-)a/Koha/Schema/Result/Category.pm (-2 / +17 lines)
Lines 409-417 __PACKAGE__->has_many( Link Here
409
  { cascade_copy => 0, cascade_delete => 0 },
409
  { cascade_copy => 0, cascade_delete => 0 },
410
);
410
);
411
411
412
=head2 overduerules
412
413
413
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31
414
Type: has_many
414
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ADt+iDjteg9Jb81L2FMIvg
415
416
Related object: L<Koha::Schema::Result::Overduerule>
417
418
=cut
419
420
__PACKAGE__->has_many(
421
  "overduerules",
422
  "Koha::Schema::Result::Overduerule",
423
  { "foreign.categorycode" => "self.categorycode" },
424
  { cascade_copy => 0, cascade_delete => 0 },
425
);
426
427
428
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-11-13 15:03:12
429
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dbqrap0TqIsIGzB8DTLOLg
415
430
416
# You can replace this text with custom code or comments, and it will be preserved on regeneration
431
# You can replace this text with custom code or comments, and it will be preserved on regeneration
417
432
(-)a/Koha/Schema/Result/Overduerule.pm (-5 / +48 lines)
Lines 35-40 unique identifier for the overduerules Link Here
35
35
36
  data_type: 'varchar'
36
  data_type: 'varchar'
37
  default_value: (empty string)
37
  default_value: (empty string)
38
  is_foreign_key: 1
38
  is_nullable: 0
39
  is_nullable: 0
39
  size: 10
40
  size: 10
40
41
Lines 44-49 foreign key from the branches table to define which branch this rule is for (if Link Here
44
45
45
  data_type: 'varchar'
46
  data_type: 'varchar'
46
  default_value: (empty string)
47
  default_value: (empty string)
48
  is_foreign_key: 1
47
  is_nullable: 0
49
  is_nullable: 0
48
  size: 10
50
  size: 10
49
51
Lines 124-132 __PACKAGE__->add_columns( Link Here
124
  "overduerules_id",
126
  "overduerules_id",
125
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
127
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
126
  "branchcode",
128
  "branchcode",
127
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
129
  {
130
    data_type => "varchar",
131
    default_value => "",
132
    is_foreign_key => 1,
133
    is_nullable => 0,
134
    size => 10,
135
  },
128
  "categorycode",
136
  "categorycode",
129
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
137
  {
138
    data_type => "varchar",
139
    default_value => "",
140
    is_foreign_key => 1,
141
    is_nullable => 0,
142
    size => 10,
143
  },
130
  "delay1",
144
  "delay1",
131
  { data_type => "integer", is_nullable => 1 },
145
  { data_type => "integer", is_nullable => 1 },
132
  "letter1",
146
  "letter1",
Lines 177-182 __PACKAGE__->add_unique_constraint("overduerules_branch_cat", ["branchcode", "ca Link Here
177
191
178
=head1 RELATIONS
192
=head1 RELATIONS
179
193
194
=head2 branchcode
195
196
Type: belongs_to
197
198
Related object: L<Koha::Schema::Result::Branch>
199
200
=cut
201
202
__PACKAGE__->belongs_to(
203
  "branchcode",
204
  "Koha::Schema::Result::Branch",
205
  { branchcode => "branchcode" },
206
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
207
);
208
209
=head2 categorycode
210
211
Type: belongs_to
212
213
Related object: L<Koha::Schema::Result::Category>
214
215
=cut
216
217
__PACKAGE__->belongs_to(
218
  "categorycode",
219
  "Koha::Schema::Result::Category",
220
  { categorycode => "categorycode" },
221
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
222
);
223
180
=head2 overduerules_transport_types
224
=head2 overduerules_transport_types
181
225
182
Type: has_many
226
Type: has_many
Lines 193-200 __PACKAGE__->has_many( Link Here
193
);
237
);
194
238
195
239
196
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-06 16:22:12
240
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-11-13 15:03:12
197
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/1ZL98jFwZ5PyG4sYSziiA
241
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aMDpv7I3wxwcwuhe/gANOg
198
242
199
__PACKAGE__->add_columns(
243
__PACKAGE__->add_columns(
200
    '+debarred1' => { is_boolean => 1 },
244
    '+debarred1' => { is_boolean => 1 },
201
- 

Return to bug 41246