View | Details | Raw Unified | Return to bug 6796
Collapse All | Expand All

(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 392-397 __PACKAGE__->has_many( Link Here
392
  { cascade_copy => 0, cascade_delete => 0 },
392
  { cascade_copy => 0, cascade_delete => 0 },
393
);
393
);
394
394
395
=head2 branch_hours
396
397
Type: has_many
398
399
Related object: L<Koha::Schema::Result::BranchHour>
400
401
=cut
402
403
__PACKAGE__->has_many(
404
  "branch_hours",
405
  "Koha::Schema::Result::BranchHour",
406
  { "foreign.branchcode" => "self.branchcode" },
407
  { cascade_copy => 0, cascade_delete => 0 },
408
);
409
395
=head2 branches_overdrive
410
=head2 branches_overdrive
396
411
397
Type: might_have
412
Type: might_have
Lines 918-925 __PACKAGE__->has_many( Link Here
918
);
933
);
919
934
920
935
921
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-08 17:35:26
936
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-20 23:31:51
922
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QPqXuEigMeIBb9NKMSkrNw
937
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z6vqUeUEn4GN+JJGSMcaBg
923
938
924
__PACKAGE__->add_columns(
939
__PACKAGE__->add_columns(
925
    '+pickup_location' => { is_boolean => 1 },
940
    '+pickup_location' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/BranchHour.pm (-1 / +99 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::BranchHour;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::BranchHour
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<branch_hours>
19
20
=cut
21
22
__PACKAGE__->table("branch_hours");
23
24
=head1 ACCESSORS
25
26
=head2 branchcode
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 day
34
35
  data_type: 'integer'
36
  default_value: 0
37
  is_nullable: 0
38
39
=head2 open_time
40
41
  data_type: 'time'
42
  is_nullable: 1
43
44
=head2 close_time
45
46
  data_type: 'time'
47
  is_nullable: 1
48
49
=cut
50
51
__PACKAGE__->add_columns(
52
  "branchcode",
53
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
54
  "day",
55
  { data_type => "integer", default_value => 0, is_nullable => 0 },
56
  "open_time",
57
  { data_type => "time", is_nullable => 1 },
58
  "close_time",
59
  { data_type => "time", is_nullable => 1 },
60
);
61
62
=head1 PRIMARY KEY
63
64
=over 4
65
66
=item * L</branchcode>
67
68
=item * L</day>
69
70
=back
71
72
=cut
73
74
__PACKAGE__->set_primary_key("branchcode", "day");
75
76
=head1 RELATIONS
77
78
=head2 branchcode
79
80
Type: belongs_to
81
82
Related object: L<Koha::Schema::Result::Branch>
83
84
=cut
85
86
__PACKAGE__->belongs_to(
87
  "branchcode",
88
  "Koha::Schema::Result::Branch",
89
  { branchcode => "branchcode" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
91
);
92
93
94
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-20 23:31:51
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cVMpMdf/SMIx9YVBoYORZA
96
97
98
# You can replace this text with custom code or comments, and it will be preserved on regeneration
99
1;

Return to bug 6796