Lines 56-67
__PACKAGE__->table("opac_news");
Link Here
|
56 |
is_nullable: 0 |
56 |
is_nullable: 0 |
57 |
size: 50 |
57 |
size: 50 |
58 |
|
58 |
|
59 |
=head2 timestamp |
59 |
=head2 publicationdate |
60 |
|
60 |
|
61 |
data_type: 'timestamp' |
61 |
data_type: 'date' |
62 |
datetime_undef_if_invalid: 1 |
62 |
datetime_undef_if_invalid: 1 |
63 |
default_value: current_timestamp |
63 |
is_nullable: 1 |
64 |
is_nullable: 0 |
|
|
65 |
|
64 |
|
66 |
=head2 expirationdate |
65 |
=head2 expirationdate |
67 |
|
66 |
|
Lines 80-85
__PACKAGE__->table("opac_news");
Link Here
|
80 |
is_foreign_key: 1 |
79 |
is_foreign_key: 1 |
81 |
is_nullable: 1 |
80 |
is_nullable: 1 |
82 |
|
81 |
|
|
|
82 |
=head2 updated_on |
83 |
|
84 |
data_type: 'timestamp' |
85 |
datetime_undef_if_invalid: 1 |
86 |
default_value: current_timestamp |
87 |
is_nullable: 0 |
88 |
|
83 |
=cut |
89 |
=cut |
84 |
|
90 |
|
85 |
__PACKAGE__->add_columns( |
91 |
__PACKAGE__->add_columns( |
Lines 98-116
__PACKAGE__->add_columns(
Link Here
|
98 |
{ data_type => "mediumtext", is_nullable => 0 }, |
104 |
{ data_type => "mediumtext", is_nullable => 0 }, |
99 |
"lang", |
105 |
"lang", |
100 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 50 }, |
106 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 50 }, |
101 |
"timestamp", |
107 |
"publicationdate", |
102 |
{ |
108 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
103 |
data_type => "timestamp", |
|
|
104 |
datetime_undef_if_invalid => 1, |
105 |
default_value => \"current_timestamp", |
106 |
is_nullable => 0, |
107 |
}, |
108 |
"expirationdate", |
109 |
"expirationdate", |
109 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
110 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
110 |
"number", |
111 |
"number", |
111 |
{ data_type => "integer", is_nullable => 1 }, |
112 |
{ data_type => "integer", is_nullable => 1 }, |
112 |
"borrowernumber", |
113 |
"borrowernumber", |
113 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
114 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
|
|
115 |
"updated_on", |
116 |
{ |
117 |
data_type => "timestamp", |
118 |
datetime_undef_if_invalid => 1, |
119 |
default_value => \"current_timestamp", |
120 |
is_nullable => 0, |
121 |
}, |
114 |
); |
122 |
); |
115 |
|
123 |
|
116 |
=head1 PRIMARY KEY |
124 |
=head1 PRIMARY KEY |
Lines 168-175
__PACKAGE__->belongs_to(
Link Here
|
168 |
); |
176 |
); |
169 |
|
177 |
|
170 |
|
178 |
|
171 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-07-23 08:50:46 |
179 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-04 13:24:59 |
172 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Db/JtTOlAdb+83PKZhbFCQ |
180 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HWEqEtcR/35q+tPIvTENIw |
173 |
|
181 |
|
174 |
sub koha_object_class { |
182 |
sub koha_object_class { |
175 |
'Koha::NewsItem'; |
183 |
'Koha::NewsItem'; |
176 |
- |
|
|