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

(-)a/Koha/Schema/Result/Desk.pm (-2 / +17 lines)
Lines 83-91 __PACKAGE__->belongs_to( Link Here
83
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
83
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
84
);
84
);
85
85
86
=head2 reserves
86
87
87
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-10-02 13:43:57
88
Type: has_many
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IklOycKlChqv9Tftm8rjqA
89
90
Related object: L<Koha::Schema::Result::Reserve>
91
92
=cut
93
94
__PACKAGE__->has_many(
95
  "reserves",
96
  "Koha::Schema::Result::Reserve",
97
  { "foreign.desk_id" => "self.desk_id" },
98
  { cascade_copy => 0, cascade_delete => 0 },
99
);
100
101
102
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-27 08:17:36
103
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BMxtD/20uxE62iGrtFa7cw
89
104
90
105
91
# You can replace this text with custom code or comments, and it will be preserved on regeneration
106
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OldReserve.pm (-2 / +9 lines)
Lines 52-57 __PACKAGE__->table("old_reserves"); Link Here
52
  is_nullable: 1
52
  is_nullable: 1
53
  size: 10
53
  size: 10
54
54
55
=head2 desk_id
56
57
  data_type: 'integer'
58
  is_nullable: 1
59
55
=head2 notificationdate
60
=head2 notificationdate
56
61
57
  data_type: 'date'
62
  data_type: 'date'
Lines 157-162 __PACKAGE__->add_columns( Link Here
157
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
162
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
158
  "branchcode",
163
  "branchcode",
159
  { data_type => "varchar", is_nullable => 1, size => 10 },
164
  { data_type => "varchar", is_nullable => 1, size => 10 },
165
  "desk_id",
166
  { data_type => "integer", is_nullable => 1 },
160
  "notificationdate",
167
  "notificationdate",
161
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
168
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
162
  "reminderdate",
169
  "reminderdate",
Lines 298-305 __PACKAGE__->belongs_to( Link Here
298
);
305
);
299
306
300
307
301
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15
308
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-27 08:17:36
302
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4vMUC/1kSr3vgQ7n0Pmuug
309
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2VnRdZGunbXreGDSE1/k9A
303
310
304
sub koha_object_class {
311
sub koha_object_class {
305
    'Koha::Old::Hold';
312
    'Koha::Old::Hold';
(-)a/Koha/Schema/Result/Reserve.pm (-3 / +30 lines)
Lines 56-61 __PACKAGE__->table("reserves"); Link Here
56
  is_nullable: 1
56
  is_nullable: 1
57
  size: 10
57
  size: 10
58
58
59
=head2 desk_id
60
61
  data_type: 'integer'
62
  is_foreign_key: 1
63
  is_nullable: 1
64
59
=head2 notificationdate
65
=head2 notificationdate
60
66
61
  data_type: 'date'
67
  data_type: 'date'
Lines 171-176 __PACKAGE__->add_columns( Link Here
171
  },
177
  },
172
  "branchcode",
178
  "branchcode",
173
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
179
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
180
  "desk_id",
181
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
174
  "notificationdate",
182
  "notificationdate",
175
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
183
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
176
  "reminderdate",
184
  "reminderdate",
Lines 296-301 __PACKAGE__->has_many( Link Here
296
  { cascade_copy => 0, cascade_delete => 0 },
304
  { cascade_copy => 0, cascade_delete => 0 },
297
);
305
);
298
306
307
=head2 desk
308
309
Type: belongs_to
310
311
Related object: L<Koha::Schema::Result::Desk>
312
313
=cut
314
315
__PACKAGE__->belongs_to(
316
  "desk",
317
  "Koha::Schema::Result::Desk",
318
  { desk_id => "desk_id" },
319
  {
320
    is_deferrable => 1,
321
    join_type     => "LEFT",
322
    on_delete     => "CASCADE",
323
    on_update     => "CASCADE",
324
  },
325
);
326
299
=head2 itemnumber
327
=head2 itemnumber
300
328
301
Type: belongs_to
329
Type: belongs_to
Lines 337-344 __PACKAGE__->belongs_to( Link Here
337
);
365
);
338
366
339
367
340
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15
368
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-27 08:17:36
341
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VH7h5kYo9WhlGobXb3N3Jg
369
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wpxuofiQqASW+S/5+8daMQ
342
370
343
__PACKAGE__->belongs_to(
371
__PACKAGE__->belongs_to(
344
  "item",
372
  "item",
345
- 

Return to bug 24412