From 651a2ccdd3721d71525da91468162fbe7f387f0a Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Mon, 1 May 2023 22:17:57 +0000 Subject: [PATCH] Bug 6796: (follow-up) Schema changes --- Koha/Schema/Result/BranchHour.pm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/BranchHour.pm b/Koha/Schema/Result/BranchHour.pm index cb5b7aebcd7..820daa5e907 100644 --- a/Koha/Schema/Result/BranchHour.pm +++ b/Koha/Schema/Result/BranchHour.pm @@ -32,8 +32,9 @@ __PACKAGE__->table("branch_hours"); =head2 day - data_type: 'integer' + data_type: 'enum' default_value: 0 + extra: {list => [0,1,2,3,4,5,6]} is_nullable: 0 =head2 open_time @@ -52,7 +53,12 @@ __PACKAGE__->add_columns( "branchcode", { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, "day", - { data_type => "integer", default_value => 0, is_nullable => 0 }, + { + data_type => "enum", + default_value => 0, + extra => { list => [0 .. 6] }, + is_nullable => 0, + }, "open_time", { data_type => "time", is_nullable => 1 }, "close_time", @@ -91,8 +97,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-30 22:45:00 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SbjA0aSMKcRwFodmHRhKpg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-01 22:16:59 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WYce1PbJEaslfco4Hh5xUA # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.30.2