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

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 1327-1332 __PACKAGE__->might_have( Link Here
1327
  { cascade_copy => 0, cascade_delete => 0 },
1327
  { cascade_copy => 0, cascade_delete => 0 },
1328
);
1328
);
1329
1329
1330
=head2 problem_reports
1331
1332
Type: has_many
1333
1334
Related object: L<Koha::Schema::Result::ProblemReport>
1335
1336
=cut
1337
1338
__PACKAGE__->has_many(
1339
  "problem_reports",
1340
  "Koha::Schema::Result::ProblemReport",
1341
  { "foreign.borrowernumber" => "self.borrowernumber" },
1342
  { cascade_copy => 0, cascade_delete => 0 },
1343
);
1344
1330
=head2 ratings
1345
=head2 ratings
1331
1346
1332
Type: has_many
1347
Type: has_many
Lines 1673-1680 Composing rels: L</aqorder_users> -> ordernumber Link Here
1673
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1688
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1674
1689
1675
1690
1676
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-24 12:04:30
1691
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-01 09:42:50
1677
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lc2beHgnH2egLaVzXEcLPg
1692
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1G8678sy3UnvmJffzcU/Hg
1678
1693
1679
__PACKAGE__->add_columns(
1694
__PACKAGE__->add_columns(
1680
    '+anonymized'    => { is_boolean => 1 },
1695
    '+anonymized'    => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 638-643 __PACKAGE__->has_many( Link Here
638
  { cascade_copy => 0, cascade_delete => 0 },
638
  { cascade_copy => 0, cascade_delete => 0 },
639
);
639
);
640
640
641
=head2 problem_reports
642
643
Type: has_many
644
645
Related object: L<Koha::Schema::Result::ProblemReport>
646
647
=cut
648
649
__PACKAGE__->has_many(
650
  "problem_reports",
651
  "Koha::Schema::Result::ProblemReport",
652
  { "foreign.branchcode" => "self.branchcode" },
653
  { cascade_copy => 0, cascade_delete => 0 },
654
);
655
641
=head2 repeatable_holidays
656
=head2 repeatable_holidays
642
657
643
Type: has_many
658
Type: has_many
Lines 744-751 __PACKAGE__->has_many( Link Here
744
);
759
);
745
760
746
761
747
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-25 09:27:24
762
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-01 09:42:50
748
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r2wn2GewgIc5+ShIdgmd9g
763
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OK9rj4bv4KW5if0kLRDTSg
749
764
750
__PACKAGE__->add_columns(
765
__PACKAGE__->add_columns(
751
    '+pickup_location' => { is_boolean => 1 }
766
    '+pickup_location' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/ProblemReport.pm (-1 / +189 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::ProblemReport;
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::ProblemReport
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<problem_reports>
19
20
=cut
21
22
__PACKAGE__->table("problem_reports");
23
24
=head1 ACCESSORS
25
26
=head2 reportid
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 title
33
34
  data_type: 'varchar'
35
  default_value: (empty string)
36
  is_nullable: 0
37
  size: 40
38
39
=head2 content
40
41
  data_type: 'varchar'
42
  default_value: (empty string)
43
  is_nullable: 0
44
  size: 255
45
46
=head2 borrowernumber
47
48
  data_type: 'integer'
49
  is_foreign_key: 1
50
  is_nullable: 1
51
52
=head2 branchcode
53
54
  data_type: 'varchar'
55
  default_value: (empty string)
56
  is_foreign_key: 1
57
  is_nullable: 0
58
  size: 10
59
60
=head2 username
61
62
  data_type: 'varchar'
63
  is_nullable: 1
64
  size: 75
65
66
=head2 problempage
67
68
  data_type: 'varchar'
69
  is_nullable: 1
70
  size: 255
71
72
=head2 recipient
73
74
  data_type: 'enum'
75
  default_value: 'library'
76
  extra: {list => ["admin","library"]}
77
  is_nullable: 0
78
79
=head2 created_on
80
81
  data_type: 'timestamp'
82
  datetime_undef_if_invalid: 1
83
  default_value: current_timestamp
84
  is_nullable: 0
85
86
=head2 status
87
88
  data_type: 'varchar'
89
  default_value: 'N'
90
  is_nullable: 0
91
  size: 1
92
93
=cut
94
95
__PACKAGE__->add_columns(
96
  "reportid",
97
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
98
  "title",
99
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
100
  "content",
101
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
102
  "borrowernumber",
103
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
104
  "branchcode",
105
  {
106
    data_type => "varchar",
107
    default_value => "",
108
    is_foreign_key => 1,
109
    is_nullable => 0,
110
    size => 10,
111
  },
112
  "username",
113
  { data_type => "varchar", is_nullable => 1, size => 75 },
114
  "problempage",
115
  { data_type => "varchar", is_nullable => 1, size => 255 },
116
  "recipient",
117
  {
118
    data_type => "enum",
119
    default_value => "library",
120
    extra => { list => ["admin", "library"] },
121
    is_nullable => 0,
122
  },
123
  "created_on",
124
  {
125
    data_type => "timestamp",
126
    datetime_undef_if_invalid => 1,
127
    default_value => \"current_timestamp",
128
    is_nullable => 0,
129
  },
130
  "status",
131
  { data_type => "varchar", default_value => "N", is_nullable => 0, size => 1 },
132
);
133
134
=head1 PRIMARY KEY
135
136
=over 4
137
138
=item * L</reportid>
139
140
=back
141
142
=cut
143
144
__PACKAGE__->set_primary_key("reportid");
145
146
=head1 RELATIONS
147
148
=head2 borrowernumber
149
150
Type: belongs_to
151
152
Related object: L<Koha::Schema::Result::Borrower>
153
154
=cut
155
156
__PACKAGE__->belongs_to(
157
  "borrowernumber",
158
  "Koha::Schema::Result::Borrower",
159
  { borrowernumber => "borrowernumber" },
160
  {
161
    is_deferrable => 1,
162
    join_type     => "LEFT",
163
    on_delete     => "CASCADE",
164
    on_update     => "CASCADE",
165
  },
166
);
167
168
=head2 branchcode
169
170
Type: belongs_to
171
172
Related object: L<Koha::Schema::Result::Branch>
173
174
=cut
175
176
__PACKAGE__->belongs_to(
177
  "branchcode",
178
  "Koha::Schema::Result::Branch",
179
  { branchcode => "branchcode" },
180
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
181
);
182
183
184
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-11 08:28:15
185
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qVNVIuurFD6Q6p4YA5Kptg
186
187
188
# You can replace this text with custom code or comments, and it will be preserved on regeneration
189
1;

Return to bug 4461