From 414a471a62df420410a463e7cef4129eba8d7e73 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2019 11:45:42 +0100 Subject: [PATCH] Bug 20352: Schema changes --- Koha/Schema/Result/Currency.pm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Currency.pm b/Koha/Schema/Result/Currency.pm index 720fa5ac59..32ad36624f 100644 --- a/Koha/Schema/Result/Currency.pm +++ b/Koha/Schema/Result/Currency.pm @@ -46,7 +46,7 @@ __PACKAGE__->table("currency"); data_type: 'timestamp' datetime_undef_if_invalid: 1 - default_value: current_timestamp + default_value: 'current_timestamp()' is_nullable: 0 =head2 rate @@ -72,6 +72,12 @@ __PACKAGE__->table("currency"); default_value: 0 is_nullable: 1 +=head2 p_cs_precedes + + data_type: 'tinyint' + default_value: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -85,7 +91,7 @@ __PACKAGE__->add_columns( { data_type => "timestamp", datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", + default_value => "current_timestamp()", is_nullable => 0, }, "rate", @@ -96,6 +102,8 @@ __PACKAGE__->add_columns( { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "p_sep_by_space", { data_type => "tinyint", default_value => 0, is_nullable => 1 }, + "p_cs_precedes", + { data_type => "tinyint", default_value => 1, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -158,8 +166,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-01 14:23:58 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnJEcCgrM1Edf99phWFdyQ +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-12-18 10:44:42 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2eo7pibKTiDmG1Hb9EvBwA sub koha_object_class { -- 2.11.0