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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 450-458 __PACKAGE__->has_many( Link Here
450
  { cascade_copy => 0, cascade_delete => 0 },
450
  { cascade_copy => 0, cascade_delete => 0 },
451
);
451
);
452
452
453
=head2 volumes
453
454
454
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-17 09:15:51
455
Type: has_many
455
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p2SIq565zPyE3ZUkSuXyBA
456
457
Related object: L<Koha::Schema::Result::Volume>
458
459
=cut
460
461
__PACKAGE__->has_many(
462
  "volumes",
463
  "Koha::Schema::Result::Volume",
464
  { "foreign.biblionumber" => "self.biblionumber" },
465
  { cascade_copy => 0, cascade_delete => 0 },
466
);
467
468
469
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-05-15 17:43:21
470
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AQnP0926C/nCaNuMRT7BLQ
456
471
457
472
458
__PACKAGE__->has_one(
473
__PACKAGE__->has_one(
(-)a/Koha/Schema/Result/Item.pm (-2 / +17 lines)
Lines 746-754 __PACKAGE__->has_many( Link Here
746
  { cascade_copy => 0, cascade_delete => 0 },
746
  { cascade_copy => 0, cascade_delete => 0 },
747
);
747
);
748
748
749
=head2 volume_items
749
750
750
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-27 10:38:13
751
Type: has_many
751
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IpI7wRweeZCbCeU1LhZbRQ
752
753
Related object: L<Koha::Schema::Result::VolumeItem>
754
755
=cut
756
757
__PACKAGE__->has_many(
758
  "volume_items",
759
  "Koha::Schema::Result::VolumeItem",
760
  { "foreign.itemnumber" => "self.itemnumber" },
761
  { cascade_copy => 0, cascade_delete => 0 },
762
);
763
764
765
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-05-15 17:43:21
766
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Tbm1Md4p51ZGJjmQ3mn/Jw
752
767
753
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
768
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
754
769
(-)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-05-15 17:43:22
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cXvLM2TgY18pxE2ZJBMouw
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0synkJlBPpaIOLrX2KUKiA
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-05-15 17:43:22
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i6YHB4Jq+79kVVYmuurzIQ
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jocpH15LNMhDBp6EbZJNsg
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