Bugzilla – Attachment 153279 Details for
Bug 6796
Overnight checkouts taking into account opening and closing hours
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6796: (follow-up) Schema changes
Bug-6796-follow-up-Schema-changes.patch (text/plain), 1.61 KB, created by
Sam Lau
on 2023-07-10 14:27:10 UTC
(
hide
)
Description:
Bug 6796: (follow-up) Schema changes
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2023-07-10 14:27:10 UTC
Size:
1.61 KB
patch
obsolete
>From f8ee22b2c3f88cb80647386f92c5b9ad5565f63c Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 1 May 2023 22:17:57 +0000 >Subject: [PATCH] Bug 6796: (follow-up) Schema changes > >Signed-off-by: Sam Lau <samalau@gmail.com> >--- > 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 cb5b7aebcd..820daa5e90 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6796
:
124669
|
124670
|
124671
|
124672
|
134323
|
134324
|
134325
|
134326
|
134327
|
145669
|
145670
|
145671
|
145672
|
145673
|
146988
|
146989
|
146990
|
146991
|
146992
|
150442
|
150443
|
150444
|
150445
|
150446
|
150447
|
150448
|
150477
|
150478
|
153252
|
153253
|
153254
|
153255
|
153256
|
153257
|
153258
|
153259
|
153260
|
153261
|
153271
|
153272
|
153273
|
153274
|
153275
|
153276
|
153277
|
153278
|
153279
|
153280
|
156772
|
156773
|
156774
|
156775
|
156776
|
156777
|
156778
|
156779
|
156780
|
161970
|
161971
|
161972
|
161973
|
161974
|
161975
|
161976
|
161977
|
161978
|
161979
|
161980
|
161986
|
161987
|
161988
|
161989
|
162043
|
162044
|
162045
|
162046
|
162047
|
162048
|
162049
|
162050
|
162051
|
162052
|
162053
|
162054
|
162055
|
162056
|
162090
|
162091
|
162092
|
162093
|
162094
|
162095
|
162096
|
162097
|
162098
|
162099
|
162100
|
162101
|
162102
|
162103
|
162104
|
164511
|
164512
|
164513
|
164514
|
164515
|
164516
|
164517
|
164518
|
164538
|
164539
|
164540
|
164541
|
164542
|
164543
|
164544
|
164545
|
164546
|
164547
|
164548
|
164549
|
164550
|
164551
|
164552