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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 315-320 __PACKAGE__->has_many( Link Here
315
  { cascade_copy => 0, cascade_delete => 0 },
315
  { cascade_copy => 0, cascade_delete => 0 },
316
);
316
);
317
317
318
=head2 recalls
319
320
Type: has_many
321
322
Related object: L<Koha::Schema::Result::Recall>
323
324
=cut
325
326
__PACKAGE__->has_many(
327
  "recalls",
328
  "Koha::Schema::Result::Recall",
329
  { "foreign.biblionumber" => "self.biblionumber" },
330
  { cascade_copy => 0, cascade_delete => 0 },
331
);
332
318
=head2 reserves
333
=head2 reserves
319
334
320
Type: has_many
335
Type: has_many
Lines 451-458 __PACKAGE__->has_many( Link Here
451
);
466
);
452
467
453
468
454
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-10-12 09:13:32
469
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-10-24 12:00:08
455
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R4PNOXHa9cRIx/up7HWz4Q
470
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qCsQx4EuXl268hOu+ixCPw
456
471
457
472
458
__PACKAGE__->has_one(
473
__PACKAGE__->has_one(
(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 1352-1357 __PACKAGE__->has_many( Link Here
1352
  { cascade_copy => 0, cascade_delete => 0 },
1352
  { cascade_copy => 0, cascade_delete => 0 },
1353
);
1353
);
1354
1354
1355
=head2 recalls
1356
1357
Type: has_many
1358
1359
Related object: L<Koha::Schema::Result::Recall>
1360
1361
=cut
1362
1363
__PACKAGE__->has_many(
1364
  "recalls",
1365
  "Koha::Schema::Result::Recall",
1366
  { "foreign.borrowernumber" => "self.borrowernumber" },
1367
  { cascade_copy => 0, cascade_delete => 0 },
1368
);
1369
1355
=head2 reserves
1370
=head2 reserves
1356
1371
1357
Type: has_many
1372
Type: has_many
Lines 1683-1690 Composing rels: L</aqorder_users> -> ordernumber Link Here
1683
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1698
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1684
1699
1685
1700
1686
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-10-08 14:17:29
1701
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-10-24 12:00:08
1687
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kzx7ildKCEFF6YDr6MRCrw
1702
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TiJYG/xK8XxdlX/SMoYzMA
1688
1703
1689
__PACKAGE__->add_columns(
1704
__PACKAGE__->add_columns(
1690
    '+anonymized'    => { is_boolean => 1 },
1705
    '+anonymized'    => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 728-733 __PACKAGE__->has_many( Link Here
728
  { cascade_copy => 0, cascade_delete => 0 },
728
  { cascade_copy => 0, cascade_delete => 0 },
729
);
729
);
730
730
731
=head2 recalls
732
733
Type: has_many
734
735
Related object: L<Koha::Schema::Result::Recall>
736
737
=cut
738
739
__PACKAGE__->has_many(
740
  "recalls",
741
  "Koha::Schema::Result::Recall",
742
  { "foreign.branchcode" => "self.branchcode" },
743
  { cascade_copy => 0, cascade_delete => 0 },
744
);
745
731
=head2 repeatable_holidays
746
=head2 repeatable_holidays
732
747
733
Type: has_many
748
Type: has_many
Lines 834-841 __PACKAGE__->has_many( Link Here
834
);
849
);
835
850
836
851
837
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-23 20:02:36
852
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-10-24 12:00:08
838
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OB75ORKajzt+l0w9mRFX1Q
853
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JiViTPzR+cS4FVWTorVS/g
839
854
840
__PACKAGE__->add_columns(
855
__PACKAGE__->add_columns(
841
    '+pickup_location' => { is_boolean => 1 }
856
    '+pickup_location' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/Branchtransfer.pm (-3 / +5 lines)
Lines 79-85 __PACKAGE__->table("branchtransfers"); Link Here
79
=head2 reason
79
=head2 reason
80
80
81
  data_type: 'enum'
81
  data_type: 'enum'
82
  extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve"]}
82
  extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","Recall","CancelRecall"]}
83
  is_nullable: 1
83
  is_nullable: 1
84
84
85
=cut
85
=cut
Lines 145-150 __PACKAGE__->add_columns( Link Here
145
        "Reserve",
145
        "Reserve",
146
        "LostReserve",
146
        "LostReserve",
147
        "CancelReserve",
147
        "CancelReserve",
148
        "Recall",
149
        "CancelRecall",
148
      ],
150
      ],
149
    },
151
    },
150
    is_nullable => 1,
152
    is_nullable => 1,
Lines 211-218 __PACKAGE__->belongs_to( Link Here
211
);
213
);
212
214
213
215
214
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-20 12:30:59
216
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-10-24 12:00:08
215
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G5GZTxF8X/mcIKXmuGVWIQ
217
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WaKnfuITq6Z0GE+BEe80Iw
216
218
217
sub koha_object_class {
219
sub koha_object_class {
218
    'Koha::Item::Transfer';
220
    'Koha::Item::Transfer';
(-)a/Koha/Schema/Result/Item.pm (-2 / +17 lines)
Lines 686-691 __PACKAGE__->has_many( Link Here
686
  { cascade_copy => 0, cascade_delete => 0 },
686
  { cascade_copy => 0, cascade_delete => 0 },
687
);
687
);
688
688
689
=head2 recalls
690
691
Type: has_many
692
693
Related object: L<Koha::Schema::Result::Recall>
694
695
=cut
696
697
__PACKAGE__->has_many(
698
  "recalls",
699
  "Koha::Schema::Result::Recall",
700
  { "foreign.itemnumber" => "self.itemnumber" },
701
  { cascade_copy => 0, cascade_delete => 0 },
702
);
703
689
=head2 reserves
704
=head2 reserves
690
705
691
Type: has_many
706
Type: has_many
Lines 762-769 __PACKAGE__->has_many( Link Here
762
);
777
);
763
778
764
779
765
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-10-12 09:13:32
780
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-10-24 12:00:08
766
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pmAVO6LxCb6wAJvfh+rndw
781
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aGLHb6hbePvgAPM1+GvZeA
767
782
768
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
783
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
769
784
(-)a/Koha/Schema/Result/Recall.pm (-1 / +273 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::Recall;
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::Recall
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<recalls>
19
20
=cut
21
22
__PACKAGE__->table("recalls");
23
24
=head1 ACCESSORS
25
26
=head2 recall_id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 borrowernumber
33
34
  data_type: 'integer'
35
  default_value: 0
36
  is_foreign_key: 1
37
  is_nullable: 0
38
39
=head2 recalldate
40
41
  data_type: 'datetime'
42
  datetime_undef_if_invalid: 1
43
  is_nullable: 1
44
45
=head2 biblionumber
46
47
  data_type: 'integer'
48
  default_value: 0
49
  is_foreign_key: 1
50
  is_nullable: 0
51
52
=head2 branchcode
53
54
  data_type: 'varchar'
55
  is_foreign_key: 1
56
  is_nullable: 1
57
  size: 10
58
59
=head2 cancellationdate
60
61
  data_type: 'datetime'
62
  datetime_undef_if_invalid: 1
63
  is_nullable: 1
64
65
=head2 recallnotes
66
67
  data_type: 'mediumtext'
68
  is_nullable: 1
69
70
=head2 priority
71
72
  data_type: 'smallint'
73
  is_nullable: 1
74
75
=head2 status
76
77
  data_type: 'varchar'
78
  is_nullable: 1
79
  size: 1
80
81
=head2 timestamp
82
83
  data_type: 'timestamp'
84
  datetime_undef_if_invalid: 1
85
  default_value: current_timestamp
86
  is_nullable: 0
87
88
=head2 itemnumber
89
90
  data_type: 'integer'
91
  is_foreign_key: 1
92
  is_nullable: 1
93
94
=head2 waitingdate
95
96
  data_type: 'datetime'
97
  datetime_undef_if_invalid: 1
98
  is_nullable: 1
99
100
=head2 expirationdate
101
102
  data_type: 'datetime'
103
  datetime_undef_if_invalid: 1
104
  is_nullable: 1
105
106
=head2 old
107
108
  data_type: 'tinyint'
109
  is_nullable: 1
110
111
=head2 item_level_recall
112
113
  data_type: 'tinyint'
114
  default_value: 0
115
  is_nullable: 0
116
117
=cut
118
119
__PACKAGE__->add_columns(
120
  "recall_id",
121
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
122
  "borrowernumber",
123
  {
124
    data_type      => "integer",
125
    default_value  => 0,
126
    is_foreign_key => 1,
127
    is_nullable    => 0,
128
  },
129
  "recalldate",
130
  {
131
    data_type => "datetime",
132
    datetime_undef_if_invalid => 1,
133
    is_nullable => 1,
134
  },
135
  "biblionumber",
136
  {
137
    data_type      => "integer",
138
    default_value  => 0,
139
    is_foreign_key => 1,
140
    is_nullable    => 0,
141
  },
142
  "branchcode",
143
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
144
  "cancellationdate",
145
  {
146
    data_type => "datetime",
147
    datetime_undef_if_invalid => 1,
148
    is_nullable => 1,
149
  },
150
  "recallnotes",
151
  { data_type => "mediumtext", is_nullable => 1 },
152
  "priority",
153
  { data_type => "smallint", is_nullable => 1 },
154
  "status",
155
  { data_type => "varchar", is_nullable => 1, size => 1 },
156
  "timestamp",
157
  {
158
    data_type => "timestamp",
159
    datetime_undef_if_invalid => 1,
160
    default_value => \"current_timestamp",
161
    is_nullable => 0,
162
  },
163
  "itemnumber",
164
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
165
  "waitingdate",
166
  {
167
    data_type => "datetime",
168
    datetime_undef_if_invalid => 1,
169
    is_nullable => 1,
170
  },
171
  "expirationdate",
172
  {
173
    data_type => "datetime",
174
    datetime_undef_if_invalid => 1,
175
    is_nullable => 1,
176
  },
177
  "old",
178
  { data_type => "tinyint", is_nullable => 1 },
179
  "item_level_recall",
180
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
181
);
182
183
=head1 PRIMARY KEY
184
185
=over 4
186
187
=item * L</recall_id>
188
189
=back
190
191
=cut
192
193
__PACKAGE__->set_primary_key("recall_id");
194
195
=head1 RELATIONS
196
197
=head2 biblionumber
198
199
Type: belongs_to
200
201
Related object: L<Koha::Schema::Result::Biblio>
202
203
=cut
204
205
__PACKAGE__->belongs_to(
206
  "biblionumber",
207
  "Koha::Schema::Result::Biblio",
208
  { biblionumber => "biblionumber" },
209
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
210
);
211
212
=head2 borrowernumber
213
214
Type: belongs_to
215
216
Related object: L<Koha::Schema::Result::Borrower>
217
218
=cut
219
220
__PACKAGE__->belongs_to(
221
  "borrowernumber",
222
  "Koha::Schema::Result::Borrower",
223
  { borrowernumber => "borrowernumber" },
224
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
225
);
226
227
=head2 branchcode
228
229
Type: belongs_to
230
231
Related object: L<Koha::Schema::Result::Branch>
232
233
=cut
234
235
__PACKAGE__->belongs_to(
236
  "branchcode",
237
  "Koha::Schema::Result::Branch",
238
  { branchcode => "branchcode" },
239
  {
240
    is_deferrable => 1,
241
    join_type     => "LEFT",
242
    on_delete     => "CASCADE",
243
    on_update     => "CASCADE",
244
  },
245
);
246
247
=head2 itemnumber
248
249
Type: belongs_to
250
251
Related object: L<Koha::Schema::Result::Item>
252
253
=cut
254
255
__PACKAGE__->belongs_to(
256
  "itemnumber",
257
  "Koha::Schema::Result::Item",
258
  { itemnumber => "itemnumber" },
259
  {
260
    is_deferrable => 1,
261
    join_type     => "LEFT",
262
    on_delete     => "CASCADE",
263
    on_update     => "CASCADE",
264
  },
265
);
266
267
268
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-10-24 12:00:08
269
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MWOz9ZLHojmM/gB6MZuszA
270
271
272
# You can replace this text with custom code or comments, and it will be preserved on regeneration
273
1;

Return to bug 19532