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

(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 800-805 __PACKAGE__->has_many( Link Here
800
  { cascade_copy => 0, cascade_delete => 0 },
800
  { cascade_copy => 0, cascade_delete => 0 },
801
);
801
);
802
802
803
=head2 library_hours
804
805
Type: has_many
806
807
Related object: L<Koha::Schema::Result::LibraryHour>
808
809
=cut
810
811
__PACKAGE__->has_many(
812
  "library_hours",
813
  "Koha::Schema::Result::LibraryHour",
814
  { "foreign.library_id" => "self.branchcode" },
815
  { cascade_copy => 0, cascade_delete => 0 },
816
);
817
803
=head2 library_smtp_server
818
=head2 library_smtp_server
804
819
805
Type: might_have
820
Type: might_have
Lines 966-973 __PACKAGE__->has_many( Link Here
966
);
981
);
967
982
968
983
969
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-05 06:44:56
984
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-09 04:50:00
970
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hNniM1Slml6YGmpEa3MJ1w
985
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hLjXBe4fcWRqiubm5JXcfA
971
986
972
__PACKAGE__->add_columns(
987
__PACKAGE__->add_columns(
973
    '+pickup_location' => { is_boolean => 1 },
988
    '+pickup_location' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/LibraryHour.pm (-1 / +105 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::LibraryHour;
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::LibraryHour
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<library_hours>
19
20
=cut
21
22
__PACKAGE__->table("library_hours");
23
24
=head1 ACCESSORS
25
26
=head2 library_id
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: 'enum'
36
  default_value: 0
37
  extra: {list => [0,1,2,3,4,5,6]}
38
  is_nullable: 0
39
40
=head2 open_time
41
42
  data_type: 'time'
43
  is_nullable: 1
44
45
=head2 close_time
46
47
  data_type: 'time'
48
  is_nullable: 1
49
50
=cut
51
52
__PACKAGE__->add_columns(
53
  "library_id",
54
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
55
  "day",
56
  {
57
    data_type => "enum",
58
    default_value => 0,
59
    extra => { list => [0 .. 6] },
60
    is_nullable => 0,
61
  },
62
  "open_time",
63
  { data_type => "time", is_nullable => 1 },
64
  "close_time",
65
  { data_type => "time", is_nullable => 1 },
66
);
67
68
=head1 PRIMARY KEY
69
70
=over 4
71
72
=item * L</library_id>
73
74
=item * L</day>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->set_primary_key("library_id", "day");
81
82
=head1 RELATIONS
83
84
=head2 library
85
86
Type: belongs_to
87
88
Related object: L<Koha::Schema::Result::Branch>
89
90
=cut
91
92
__PACKAGE__->belongs_to(
93
  "library",
94
  "Koha::Schema::Result::Branch",
95
  { branchcode => "library_id" },
96
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97
);
98
99
100
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-09 04:50:00
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+HaRcwTHecetQRA+fNytTw
102
103
104
# You can replace this text with custom code or comments, and it will be preserved on regeneration
105
1;

Return to bug 6796