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

(-)a/Koha/Schema/Result/HoldGroup.pm (+95 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::HoldGroup;
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::HoldGroup
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<hold_group>
19
20
=cut
21
22
__PACKAGE__->table("hold_group");
23
24
=head1 ACCESSORS
25
26
=head2 hold_group_id
27
28
  data_type: 'integer'
29
  extra: {unsigned => 1}
30
  is_auto_increment: 1
31
  is_nullable: 0
32
33
=cut
34
35
__PACKAGE__->add_columns(
36
  "hold_group_id",
37
  {
38
    data_type => "integer",
39
    extra => { unsigned => 1 },
40
    is_auto_increment => 1,
41
    is_nullable => 0,
42
  },
43
);
44
45
=head1 PRIMARY KEY
46
47
=over 4
48
49
=item * L</hold_group_id>
50
51
=back
52
53
=cut
54
55
__PACKAGE__->set_primary_key("hold_group_id");
56
57
=head1 RELATIONS
58
59
=head2 old_reserves
60
61
Type: has_many
62
63
Related object: L<Koha::Schema::Result::OldReserve>
64
65
=cut
66
67
__PACKAGE__->has_many(
68
  "old_reserves",
69
  "Koha::Schema::Result::OldReserve",
70
  { "foreign.hold_group_id" => "self.hold_group_id" },
71
  { cascade_copy => 0, cascade_delete => 0 },
72
);
73
74
=head2 reserves
75
76
Type: has_many
77
78
Related object: L<Koha::Schema::Result::Reserve>
79
80
=cut
81
82
__PACKAGE__->has_many(
83
  "reserves",
84
  "Koha::Schema::Result::Reserve",
85
  { "foreign.hold_group_id" => "self.hold_group_id" },
86
  { cascade_copy => 0, cascade_delete => 0 },
87
);
88
89
90
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-04-15 22:28:13
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xKP5eBTiypxGQAU7/drVWg
92
93
94
# You can replace this text with custom code or comments, and it will be preserved on regeneration
95
1;
(-)a/Koha/Schema/Result/OldReserve.pm (-2 / +36 lines)
Lines 137-142 __PACKAGE__->table("old_reserves"); Link Here
137
  is_nullable: 1
137
  is_nullable: 1
138
  size: 10
138
  size: 10
139
139
140
=head2 hold_group_id
141
142
  data_type: 'integer'
143
  extra: {unsigned => 1}
144
  is_foreign_key: 1
145
  is_nullable: 1
146
140
=cut
147
=cut
141
148
142
__PACKAGE__->add_columns(
149
__PACKAGE__->add_columns(
Lines 192-197 __PACKAGE__->add_columns( Link Here
192
  },
199
  },
193
  "itemtype",
200
  "itemtype",
194
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
201
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
202
  "hold_group_id",
203
  {
204
    data_type => "integer",
205
    extra => { unsigned => 1 },
206
    is_foreign_key => 1,
207
    is_nullable => 1,
208
  },
195
);
209
);
196
210
197
=head1 PRIMARY KEY
211
=head1 PRIMARY KEY
Lines 248-253 __PACKAGE__->belongs_to( Link Here
248
  },
262
  },
249
);
263
);
250
264
265
=head2 hold_group
266
267
Type: belongs_to
268
269
Related object: L<Koha::Schema::Result::HoldGroup>
270
271
=cut
272
273
__PACKAGE__->belongs_to(
274
  "hold_group",
275
  "Koha::Schema::Result::HoldGroup",
276
  { hold_group_id => "hold_group_id" },
277
  {
278
    is_deferrable => 1,
279
    join_type     => "LEFT",
280
    on_delete     => "SET NULL",
281
    on_update     => "CASCADE",
282
  },
283
);
284
251
=head2 itemnumber
285
=head2 itemnumber
252
286
253
Type: belongs_to
287
Type: belongs_to
Lines 289-296 __PACKAGE__->belongs_to( Link Here
289
);
323
);
290
324
291
325
292
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
326
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-04-15 22:28:13
293
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ynb6NtiTN8ZZur2YCvxlNg
327
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q56t7dvPQttsLQfmPNcIbA
294
328
295
329
296
# You can replace this text with custom content, and it will be preserved on regeneration
330
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Reserve.pm (-3 / +36 lines)
Lines 141-146 __PACKAGE__->table("reserves"); Link Here
141
  is_nullable: 1
141
  is_nullable: 1
142
  size: 10
142
  size: 10
143
143
144
=head2 hold_group_id
145
146
  data_type: 'integer'
147
  extra: {unsigned => 1}
148
  is_foreign_key: 1
149
  is_nullable: 1
150
144
=cut
151
=cut
145
152
146
__PACKAGE__->add_columns(
153
__PACKAGE__->add_columns(
Lines 206-211 __PACKAGE__->add_columns( Link Here
206
  },
213
  },
207
  "itemtype",
214
  "itemtype",
208
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
215
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
216
  "hold_group_id",
217
  {
218
    data_type => "integer",
219
    extra => { unsigned => 1 },
220
    is_foreign_key => 1,
221
    is_nullable => 1,
222
  },
209
);
223
);
210
224
211
=head1 PRIMARY KEY
225
=head1 PRIMARY KEY
Lines 272-277 __PACKAGE__->belongs_to( Link Here
272
  },
286
  },
273
);
287
);
274
288
289
=head2 hold_group
290
291
Type: belongs_to
292
293
Related object: L<Koha::Schema::Result::HoldGroup>
294
295
=cut
296
297
__PACKAGE__->belongs_to(
298
  "hold_group",
299
  "Koha::Schema::Result::HoldGroup",
300
  { hold_group_id => "hold_group_id" },
301
  {
302
    is_deferrable => 1,
303
    join_type     => "LEFT",
304
    on_delete     => "SET NULL",
305
    on_update     => "CASCADE",
306
  },
307
);
308
275
=head2 itemnumber
309
=head2 itemnumber
276
310
277
Type: belongs_to
311
Type: belongs_to
Lines 313-320 __PACKAGE__->belongs_to( Link Here
313
);
347
);
314
348
315
349
316
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
350
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-04-15 22:28:13
317
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2GCET9quFpUvzuN7MUWZNw
351
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MigQjMCoTzC4uLObNC++Pw
318
352
319
__PACKAGE__->belongs_to(
353
__PACKAGE__->belongs_to(
320
  "item",
354
  "item",
321
- 

Return to bug 15516