From 4c087b1e594fa6a8fa5309baea29a67159c7c229 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 2 Sep 2020 15:05:26 +0200 Subject: [PATCH] Bug 21066: DBIC schema changes Signed-off-by: Jonathan Druart --- Koha/Schema/Result/OpacNews.pm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/OpacNews.pm b/Koha/Schema/Result/OpacNews.pm index ee4bc3b4a6..2f4964ddbc 100644 --- a/Koha/Schema/Result/OpacNews.pm +++ b/Koha/Schema/Result/OpacNews.pm @@ -56,7 +56,13 @@ __PACKAGE__->table("opac_news"); is_nullable: 0 size: 50 -=head2 timestamp +=head2 published_on + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 updated_on data_type: 'timestamp' datetime_undef_if_invalid: 1 @@ -98,7 +104,9 @@ __PACKAGE__->add_columns( { data_type => "mediumtext", is_nullable => 0 }, "lang", { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 }, - "timestamp", + "published_on", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "updated_on", { data_type => "timestamp", datetime_undef_if_invalid => 1, @@ -168,8 +176,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-07-23 08:50:46 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Db/JtTOlAdb+83PKZhbFCQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-09-02 12:50:13 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IKAwgZM6jqOTbksraZb21w sub koha_object_class { 'Koha::NewsItem'; -- 2.39.5