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 155-160 __PACKAGE__->add_columns( Link Here
155
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
161
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
156
  "biblionumber",
162
  "biblionumber",
157
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
163
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
164
  "volume_id",
165
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
158
  "branchcode",
166
  "branchcode",
159
  { data_type => "varchar", is_nullable => 1, size => 10 },
167
  { data_type => "varchar", is_nullable => 1, size => 10 },
160
  "notificationdate",
168
  "notificationdate",
Lines 297-305 __PACKAGE__->belongs_to( Link Here
297
  },
305
  },
298
);
306
);
299
307
308
=head2 volume
309
310
Type: belongs_to
311
312
Related object: L<Koha::Schema::Result::Volume>
313
314
=cut
315
316
__PACKAGE__->belongs_to(
317
  "volume",
318
  "Koha::Schema::Result::Volume",
319
  { id => "volume_id" },
320
  {
321
    is_deferrable => 1,
322
    join_type     => "LEFT",
323
    on_delete     => "SET NULL",
324
    on_update     => "SET NULL",
325
  },
326
);
327
300
328
301
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15
329
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-07-06 14:34:15
302
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4vMUC/1kSr3vgQ7n0Pmuug
330
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a4H7IwYqW3wiHFRIQNeeLA
303
331
304
__PACKAGE__->add_columns(
332
__PACKAGE__->add_columns(
305
    '+item_level_hold' => { is_boolean => 1 },
333
    '+item_level_hold' => { is_boolean => 1 },
(-)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 169-174 __PACKAGE__->add_columns( Link Here
169
    is_foreign_key => 1,
175
    is_foreign_key => 1,
170
    is_nullable    => 0,
176
    is_nullable    => 0,
171
  },
177
  },
178
  "volume_id",
179
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
172
  "branchcode",
180
  "branchcode",
173
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
181
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
174
  "notificationdate",
182
  "notificationdate",
Lines 336-344 __PACKAGE__->belongs_to( Link Here
336
  },
344
  },
337
);
345
);
338
346
347
=head2 volume
348
349
Type: belongs_to
350
351
Related object: L<Koha::Schema::Result::Volume>
352
353
=cut
354
355
__PACKAGE__->belongs_to(
356
  "volume",
357
  "Koha::Schema::Result::Volume",
358
  { id => "volume_id" },
359
  {
360
    is_deferrable => 1,
361
    join_type     => "LEFT",
362
    on_delete     => "SET NULL",
363
    on_update     => "CASCADE",
364
  },
365
);
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-07-06 14:34:15
341
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VH7h5kYo9WhlGobXb3N3Jg
369
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wWf5CudObnwQ7gAnWbDt2g
342
370
343
__PACKAGE__->belongs_to(
371
__PACKAGE__->belongs_to(
344
  "item",
372
  "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-05-15 17:43:22
169
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-07-06 14:34:15
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0synkJlBPpaIOLrX2KUKiA
170
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:map/X+OyjZAhJzs/j31+lQ
141
171
142
sub koha_objects_class {
172
sub koha_objects_class {
143
    'Koha::Biblio::Volumes';
173
    'Koha::Biblio::Volumes';
144
- 

Return to bug 24860