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 114-119
__PACKAGE__->belongs_to(
Link Here
|
114 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
120 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
115 |
); |
121 |
); |
116 |
|
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 |
|
117 |
=head2 volume_items |
153 |
=head2 volume_items |
118 |
|
154 |
|
119 |
Type: has_many |
155 |
Type: has_many |
Lines 130-137
__PACKAGE__->has_many(
Link Here
|
130 |
); |
166 |
); |
131 |
|
167 |
|
132 |
|
168 |
|
133 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-04 15:22:18 |
169 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-28 14:28:24 |
134 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cXvLM2TgY18pxE2ZJBMouw |
170 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qg1AhIgW7n2Ws8rAwdFSpw |
135 |
|
171 |
|
136 |
sub koha_objects_class { |
172 |
sub koha_objects_class { |
137 |
'Koha::Biblio::Volumes'; |
173 |
'Koha::Biblio::Volumes'; |