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 161-166 __PACKAGE__->add_columns( Link Here
161
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
167
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
162
  "biblionumber",
168
  "biblionumber",
163
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
169
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
170
  "volume_id",
171
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
164
  "branchcode",
172
  "branchcode",
165
  { data_type => "varchar", is_nullable => 1, size => 10 },
173
  { data_type => "varchar", is_nullable => 1, size => 10 },
166
  "notificationdate",
174
  "notificationdate",
Lines 305-313 __PACKAGE__->belongs_to( Link Here
305
  },
313
  },
306
);
314
);
307
315
316
=head2 volume
317
318
Type: belongs_to
319
320
Related object: L<Koha::Schema::Result::Volume>
321
322
=cut
323
324
__PACKAGE__->belongs_to(
325
  "volume",
326
  "Koha::Schema::Result::Volume",
327
  { id => "volume_id" },
328
  {
329
    is_deferrable => 1,
330
    join_type     => "LEFT",
331
    on_delete     => "SET NULL",
332
    on_update     => "SET NULL",
333
  },
334
);
335
308
336
309
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-25 13:08:15
337
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-25 14:45:34
310
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PtDLEieaxS+76FD0H943Zg
338
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mKbtcdxSEzY3eetqVB9ZaA
311
339
312
__PACKAGE__->add_columns(
340
__PACKAGE__->add_columns(
313
    '+item_level_hold' => { is_boolean => 1 },
341
    '+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 175-180 __PACKAGE__->add_columns( Link Here
175
    is_foreign_key => 1,
181
    is_foreign_key => 1,
176
    is_nullable    => 0,
182
    is_nullable    => 0,
177
  },
183
  },
184
  "volume_id",
185
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
178
  "branchcode",
186
  "branchcode",
179
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
187
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
180
  "notificationdate",
188
  "notificationdate",
Lines 344-352 __PACKAGE__->belongs_to( Link Here
344
  },
352
  },
345
);
353
);
346
354
355
=head2 volume
356
357
Type: belongs_to
358
359
Related object: L<Koha::Schema::Result::Volume>
360
361
=cut
362
363
__PACKAGE__->belongs_to(
364
  "volume",
365
  "Koha::Schema::Result::Volume",
366
  { id => "volume_id" },
367
  {
368
    is_deferrable => 1,
369
    join_type     => "LEFT",
370
    on_delete     => "SET NULL",
371
    on_update     => "CASCADE",
372
  },
373
);
374
347
375
348
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-25 13:08:15
376
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-25 14:45:34
349
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qdEIwB+DOrraRb+zd4F6yQ
377
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UlQ6kiK+mfL/ZTJ+i371VA
350
378
351
__PACKAGE__->belongs_to(
379
__PACKAGE__->belongs_to(
352
  "item",
380
  "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-08-25 14:45:35
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0synkJlBPpaIOLrX2KUKiA
170
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:34YkcGxJoy/fSZRmmLUFzQ
141
171
142
=head2 koha_objects_class
172
=head2 koha_objects_class
143
173
144
- 

Return to bug 24860