From 7e691bc6d8695377e12896be085039c81115e4d0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 7 Dec 2017 10:26:32 -0300 Subject: [PATCH] Bug 19724: DBIC Schema changes Signed-off-by: Jonathan Druart --- Koha/Schema/Result/BiblioMetadata.pm | 18 ++++++++++++++++-- Koha/Schema/Result/DeletedbiblioMetadata.pm | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/BiblioMetadata.pm b/Koha/Schema/Result/BiblioMetadata.pm index 0f2ec1d5d7..20987f7023 100644 --- a/Koha/Schema/Result/BiblioMetadata.pm +++ b/Koha/Schema/Result/BiblioMetadata.pm @@ -52,6 +52,13 @@ __PACKAGE__->table("biblio_metadata"); data_type: 'longtext' is_nullable: 0 +=head2 timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + =cut __PACKAGE__->add_columns( @@ -65,6 +72,13 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 16 }, "metadata", { data_type => "longtext", is_nullable => 0 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, ); =head1 PRIMARY KEY @@ -118,8 +132,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LoYje8i9pvKcBn8DQwH/Sg +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-12-07 10:24:45 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yMvtHn61obhiDDPh7+CIuQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/DeletedbiblioMetadata.pm b/Koha/Schema/Result/DeletedbiblioMetadata.pm index c20f04da33..5933f4061d 100644 --- a/Koha/Schema/Result/DeletedbiblioMetadata.pm +++ b/Koha/Schema/Result/DeletedbiblioMetadata.pm @@ -52,6 +52,13 @@ __PACKAGE__->table("deletedbiblio_metadata"); data_type: 'longtext' is_nullable: 0 +=head2 timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + =cut __PACKAGE__->add_columns( @@ -65,6 +72,13 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 16 }, "metadata", { data_type => "longtext", is_nullable => 0 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, ); =head1 PRIMARY KEY @@ -118,8 +132,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hKgy8bBepvfP/ZYPApJnwQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-12-07 10:24:45 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kk2GBiYaECKD+QtnKnycKQ # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.39.5