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

(-)a/Koha/Schema/Result/OldReserve.pm (-2 / +30 lines)
Lines 46-51 __PACKAGE__->table("old_reserves"); Link Here
46
  is_foreign_key: 1
46
  is_foreign_key: 1
47
  is_nullable: 1
47
  is_nullable: 1
48
48
49
=head2 volume_id
50
51
  data_type: 'integer'
52
  is_foreign_key: 1
53
  is_nullable: 1
54
49
=head2 branchcode
55
=head2 branchcode
50
56
51
  data_type: 'varchar'
57
  data_type: 'varchar'
Lines 172-177 __PACKAGE__->add_columns( Link Here
172
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
178
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
173
  "biblionumber",
179
  "biblionumber",
174
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
180
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
181
  "volume_id",
182
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
175
  "branchcode",
183
  "branchcode",
176
  { data_type => "varchar", is_nullable => 1, size => 10 },
184
  { data_type => "varchar", is_nullable => 1, size => 10 },
177
  "desk_id",
185
  "desk_id",
Lines 320-328 __PACKAGE__->belongs_to( Link Here
320
  },
328
  },
321
);
329
);
322
330
331
=head2 volume
332
333
Type: belongs_to
334
335
Related object: L<Koha::Schema::Result::Volume>
336
337
=cut
338
339
__PACKAGE__->belongs_to(
340
  "volume",
341
  "Koha::Schema::Result::Volume",
342
  { id => "volume_id" },
343
  {
344
    is_deferrable => 1,
345
    join_type     => "LEFT",
346
    on_delete     => "SET NULL",
347
    on_update     => "SET NULL",
348
  },
349
);
350
323
351
324
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-06 11:00:40
352
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-11-13 16:19:46
325
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7weIpuc0RpZ/MxFn94E8dg
353
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QsAkhw9ZKahdMfjpwqlyGQ
326
354
327
__PACKAGE__->belongs_to(
355
__PACKAGE__->belongs_to(
328
  "item",
356
  "item",
(-)a/Koha/Schema/Result/Reserve.pm (-2 / +30 lines)
Lines 49-54 __PACKAGE__->table("reserves"); Link Here
49
  is_foreign_key: 1
49
  is_foreign_key: 1
50
  is_nullable: 0
50
  is_nullable: 0
51
51
52
=head2 volume_id
53
54
  data_type: 'integer'
55
  is_foreign_key: 1
56
  is_nullable: 1
57
52
=head2 branchcode
58
=head2 branchcode
53
59
54
  data_type: 'varchar'
60
  data_type: 'varchar'
Lines 187-192 __PACKAGE__->add_columns( Link Here
187
    is_foreign_key => 1,
193
    is_foreign_key => 1,
188
    is_nullable    => 0,
194
    is_nullable    => 0,
189
  },
195
  },
196
  "volume_id",
197
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
190
  "branchcode",
198
  "branchcode",
191
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
199
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
192
  "desk_id",
200
  "desk_id",
Lines 380-388 __PACKAGE__->belongs_to( Link Here
380
  },
388
  },
381
);
389
);
382
390
391
=head2 volume
392
393
Type: belongs_to
394
395
Related object: L<Koha::Schema::Result::Volume>
396
397
=cut
398
399
__PACKAGE__->belongs_to(
400
  "volume",
401
  "Koha::Schema::Result::Volume",
402
  { id => "volume_id" },
403
  {
404
    is_deferrable => 1,
405
    join_type     => "LEFT",
406
    on_delete     => "SET NULL",
407
    on_update     => "CASCADE",
408
  },
409
);
410
383
411
384
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-06 11:00:40
412
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-11-13 16:19:46
385
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ue2kNBP+lq8+9NthPiYrrw
413
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SUom0h/p3wqI/CcscMAHbw
386
414
387
__PACKAGE__->belongs_to(
415
__PACKAGE__->belongs_to(
388
  "item",
416
  "item",
(-)a/Koha/Schema/Result/Volume.pm (-3 / +32 lines)
Lines 120-125 __PACKAGE__->belongs_to( Link Here
120
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
120
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
121
);
121
);
122
122
123
=head2 old_reserves
124
125
Type: has_many
126
127
Related object: L<Koha::Schema::Result::OldReserve>
128
129
=cut
130
131
__PACKAGE__->has_many(
132
  "old_reserves",
133
  "Koha::Schema::Result::OldReserve",
134
  { "foreign.volume_id" => "self.id" },
135
  { cascade_copy => 0, cascade_delete => 0 },
136
);
137
138
=head2 reserves
139
140
Type: has_many
141
142
Related object: L<Koha::Schema::Result::Reserve>
143
144
=cut
145
146
__PACKAGE__->has_many(
147
  "reserves",
148
  "Koha::Schema::Result::Reserve",
149
  { "foreign.volume_id" => "self.id" },
150
  { cascade_copy => 0, cascade_delete => 0 },
151
);
152
123
=head2 volume_items
153
=head2 volume_items
124
154
125
Type: has_many
155
Type: has_many
Lines 136-143 __PACKAGE__->has_many( Link Here
136
);
166
);
137
167
138
168
139
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-11-05 18:59:43
169
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-11-13 16:19:47
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YKcsboHxWfAQgUIRZEivAQ
170
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ixn+Qdy/w6VuEgTJjjWklQ
141
171
142
=head2 koha_objects_class
172
=head2 koha_objects_class
143
173
144
- 

Return to bug 24860