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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 495-503 __PACKAGE__->has_many( Link Here
495
  { cascade_copy => 0, cascade_delete => 0 },
495
  { cascade_copy => 0, cascade_delete => 0 },
496
);
496
);
497
497
498
=head2 volumes
498
499
499
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-02-03 10:03:26
500
Type: has_many
500
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YVZN5K/K1v7Kj2yYGwT2CQ
501
502
Related object: L<Koha::Schema::Result::Volume>
503
504
=cut
505
506
__PACKAGE__->has_many(
507
  "volumes",
508
  "Koha::Schema::Result::Volume",
509
  { "foreign.biblionumber" => "self.biblionumber" },
510
  { cascade_copy => 0, cascade_delete => 0 },
511
);
512
513
514
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-07-13 16:46:12
515
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GCOMiAlgo6+QR5Z1uAKDrg
501
516
502
__PACKAGE__->has_many(
517
__PACKAGE__->has_many(
503
  "biblioitem",
518
  "biblioitem",
(-)a/Koha/Schema/Result/Item.pm (-2 / +17 lines)
Lines 849-857 __PACKAGE__->has_many( Link Here
849
  { cascade_copy => 0, cascade_delete => 0 },
849
  { cascade_copy => 0, cascade_delete => 0 },
850
);
850
);
851
851
852
=head2 volume_items
852
853
853
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
854
Type: has_many
854
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U5Tm2JfUnfhACRDJ4SpFgQ
855
856
Related object: L<Koha::Schema::Result::VolumeItem>
857
858
=cut
859
860
__PACKAGE__->has_many(
861
  "volume_items",
862
  "Koha::Schema::Result::VolumeItem",
863
  { "foreign.itemnumber" => "self.itemnumber" },
864
  { cascade_copy => 0, cascade_delete => 0 },
865
);
866
867
868
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-07-13 16:46:12
869
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wsfHfXvzRZqMMkC3CkVR0w
855
870
856
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
871
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
857
872
(-)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 @ 2021-07-13 16:46:13
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cXvLM2TgY18pxE2ZJBMouw
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:w4tPedBapvhpwYov9Cb/gQ
135
141
136
=head2 koha_objects_class
142
=head2 koha_objects_class
137
143
(-)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 @ 2021-07-13 16:46:13
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i6YHB4Jq+79kVVYmuurzIQ
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ALKnoA3HMZ2J4AsXes5nuA
114
130
115
=head2 koha_object_class
131
=head2 koha_object_class
116
132
117
- 

Return to bug 24857