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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 405-413 __PACKAGE__->has_many( Link Here
405
  { cascade_copy => 0, cascade_delete => 0 },
405
  { cascade_copy => 0, cascade_delete => 0 },
406
);
406
);
407
407
408
=head2 volumes
408
409
409
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:47
410
Type: has_many
410
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:otCex8qzJmZyc+JXpKNdpQ
411
412
Related object: L<Koha::Schema::Result::Volume>
413
414
=cut
415
416
__PACKAGE__->has_many(
417
  "volumes",
418
  "Koha::Schema::Result::Volume",
419
  { "foreign.biblionumber" => "self.biblionumber" },
420
  { cascade_copy => 0, cascade_delete => 0 },
421
);
422
423
424
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-24 19:00:02
425
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wxjOCSKRMo2UiEPA8FYpLQ
411
426
412
427
413
__PACKAGE__->has_one(
428
__PACKAGE__->has_one(
(-)a/Koha/Schema/Result/Item.pm (-2 / +17 lines)
Lines 745-753 __PACKAGE__->has_many( Link Here
745
  { cascade_copy => 0, cascade_delete => 0 },
745
  { cascade_copy => 0, cascade_delete => 0 },
746
);
746
);
747
747
748
=head2 volume_items
748
749
749
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-17 10:42:24
750
Type: has_many
750
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CcrMhgq+PQ1MHV6jZEN8wA
751
752
Related object: L<Koha::Schema::Result::VolumeItem>
753
754
=cut
755
756
__PACKAGE__->has_many(
757
  "volume_items",
758
  "Koha::Schema::Result::VolumeItem",
759
  { "foreign.itemnumber" => "self.itemnumber" },
760
  { cascade_copy => 0, cascade_delete => 0 },
761
);
762
763
764
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-24 19:00:03
765
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AnHkbPstDoIFODxYR1q98w
751
766
752
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
767
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
753
768
(-)a/Koha/Schema/Result/Volume.pm (-6 / +12 lines)
Lines 36-41 __PACKAGE__->table("volumes"); Link Here
36
  is_foreign_key: 1
36
  is_foreign_key: 1
37
  is_nullable: 0
37
  is_nullable: 0
38
38
39
=head2 display_order
40
41
  data_type: 'integer'
42
  default_value: 0
43
  is_nullable: 0
44
39
=head2 description
45
=head2 description
40
46
41
  data_type: 'mediumtext'
47
  data_type: 'mediumtext'
Lines 45-52 __PACKAGE__->table("volumes"); Link Here
45
51
46
  data_type: 'timestamp'
52
  data_type: 'timestamp'
47
  datetime_undef_if_invalid: 1
53
  datetime_undef_if_invalid: 1
48
  default_value: '0000-00-00 00:00:00'
54
  is_nullable: 1
49
  is_nullable: 0
50
55
51
=head2 updated_on
56
=head2 updated_on
52
57
Lines 67-80 __PACKAGE__->add_columns( Link Here
67
    is_foreign_key => 1,
72
    is_foreign_key => 1,
68
    is_nullable    => 0,
73
    is_nullable    => 0,
69
  },
74
  },
75
  "display_order",
76
  { data_type => "integer", default_value => 0, is_nullable => 0 },
70
  "description",
77
  "description",
71
  { data_type => "mediumtext", is_nullable => 1 },
78
  { data_type => "mediumtext", is_nullable => 1 },
72
  "created_on",
79
  "created_on",
73
  {
80
  {
74
    data_type => "timestamp",
81
    data_type => "timestamp",
75
    datetime_undef_if_invalid => 1,
82
    datetime_undef_if_invalid => 1,
76
    default_value => "0000-00-00 00:00:00",
83
    is_nullable => 1,
77
    is_nullable => 0,
78
  },
84
  },
79
  "updated_on",
85
  "updated_on",
80
  {
86
  {
Lines 130-137 __PACKAGE__->has_many( Link Here
130
);
136
);
131
137
132
138
133
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-04 15:22:18
139
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-24 19:00:04
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cXvLM2TgY18pxE2ZJBMouw
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9GITIIWcoQQZqxR09g7NRA
135
141
136
sub koha_objects_class {
142
sub koha_objects_class {
137
    'Koha::Biblio::Volumes';
143
    'Koha::Biblio::Volumes';
(-)a/Koha/Schema/Result/VolumeItem.pm (-3 / +18 lines)
Lines 76-81 __PACKAGE__->add_columns( Link Here
76
76
77
__PACKAGE__->set_primary_key("id");
77
__PACKAGE__->set_primary_key("id");
78
78
79
=head1 UNIQUE CONSTRAINTS
80
81
=head2 C<volume_id>
82
83
=over 4
84
85
=item * L</volume_id>
86
87
=item * L</itemnumber>
88
89
=back
90
91
=cut
92
93
__PACKAGE__->add_unique_constraint("volume_id", ["volume_id", "itemnumber"]);
94
79
=head1 RELATIONS
95
=head1 RELATIONS
80
96
81
=head2 itemnumber
97
=head2 itemnumber
Lines 109-116 __PACKAGE__->belongs_to( Link Here
109
);
125
);
110
126
111
127
112
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-03 18:25:20
128
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-24 19:00:04
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i6YHB4Jq+79kVVYmuurzIQ
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:siJ0eMr/qv1wNx3yoINiDA
114
130
115
sub koha_object_class {
131
sub koha_object_class {
116
    'Koha::Biblio::Volume::Item';
132
    'Koha::Biblio::Volume::Item';
117
- 

Return to bug 24857