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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 270-275 __PACKAGE__->has_many( Link Here
270
  { cascade_copy => 0, cascade_delete => 0 },
270
  { cascade_copy => 0, cascade_delete => 0 },
271
);
271
);
272
272
273
=head2 course_items
274
275
Type: has_many
276
277
Related object: L<Koha::Schema::Result::CourseItem>
278
279
=cut
280
281
__PACKAGE__->has_many(
282
  "course_items",
283
  "Koha::Schema::Result::CourseItem",
284
  { "foreign.biblionumber" => "self.biblionumber" },
285
  { cascade_copy => 0, cascade_delete => 0 },
286
);
287
273
=head2 cover_images
288
=head2 cover_images
274
289
275
Type: has_many
290
Type: has_many
Lines 481-488 __PACKAGE__->has_many( Link Here
481
);
496
);
482
497
483
498
484
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
499
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-02-03 10:03:26
485
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nmmsZusHYNAMimE9sImSNg
500
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YVZN5K/K1v7Kj2yYGwT2CQ
486
501
487
__PACKAGE__->has_many(
502
__PACKAGE__->has_many(
488
  "biblioitem",
503
  "biblioitem",
(-)a/Koha/Schema/Result/CourseItem.pm (-6 / +31 lines)
Lines 35-43 course item id Link Here
35
35
36
  data_type: 'integer'
36
  data_type: 'integer'
37
  is_foreign_key: 1
37
  is_foreign_key: 1
38
  is_nullable: 0
38
  is_nullable: 1
39
40
=head2 biblionumber
39
41
40
items.itemnumber for the item on reserve
42
  data_type: 'integer'
43
  is_foreign_key: 1
44
  is_nullable: 0
41
45
42
=head2 itype
46
=head2 itype
43
47
Lines 184-189 __PACKAGE__->add_columns( Link Here
184
  "ci_id",
188
  "ci_id",
185
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
189
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
186
  "itemnumber",
190
  "itemnumber",
191
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
192
  "biblionumber",
187
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
193
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
188
  "itype",
194
  "itype",
189
  { data_type => "varchar", is_nullable => 1, size => 10 },
195
  { data_type => "varchar", is_nullable => 1, size => 10 },
Lines 259-264 __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); Link Here
259
265
260
=head1 RELATIONS
266
=head1 RELATIONS
261
267
268
=head2 biblionumber
269
270
Type: belongs_to
271
272
Related object: L<Koha::Schema::Result::Biblio>
273
274
=cut
275
276
__PACKAGE__->belongs_to(
277
  "biblionumber",
278
  "Koha::Schema::Result::Biblio",
279
  { biblionumber => "biblionumber" },
280
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
281
);
282
262
=head2 course_reserves
283
=head2 course_reserves
263
284
264
Type: has_many
285
Type: has_many
Lines 346-357 __PACKAGE__->belongs_to( Link Here
346
  "itemnumber",
367
  "itemnumber",
347
  "Koha::Schema::Result::Item",
368
  "Koha::Schema::Result::Item",
348
  { itemnumber => "itemnumber" },
369
  { itemnumber => "itemnumber" },
349
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
370
  {
371
    is_deferrable => 1,
372
    join_type     => "LEFT",
373
    on_delete     => "CASCADE",
374
    on_update     => "CASCADE",
375
  },
350
);
376
);
351
377
352
378
353
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
379
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-02-03 10:03:26
354
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g97N0MosrfgL6Jg3NVJUFA
380
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kImBuor/tqSbLlPDt+d2fg
355
381
356
__PACKAGE__->add_columns(
382
__PACKAGE__->add_columns(
357
    '+itype_enabled'         => { is_boolean => 1 },
383
    '+itype_enabled'         => { is_boolean => 1 },
358
- 

Return to bug 14237