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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 240-245 __PACKAGE__->has_many( Link Here
240
  { cascade_copy => 0, cascade_delete => 0 },
240
  { cascade_copy => 0, cascade_delete => 0 },
241
);
241
);
242
242
243
=head2 club_holds
244
245
Type: has_many
246
247
Related object: L<Koha::Schema::Result::ClubHold>
248
249
=cut
250
251
__PACKAGE__->has_many(
252
  "club_holds",
253
  "Koha::Schema::Result::ClubHold",
254
  { "foreign.biblio_id" => "self.biblionumber" },
255
  { cascade_copy => 0, cascade_delete => 0 },
256
);
257
243
=head2 hold_fill_targets
258
=head2 hold_fill_targets
244
259
245
Type: has_many
260
Type: has_many
Lines 391-398 __PACKAGE__->has_many( Link Here
391
);
406
);
392
407
393
408
394
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-08-05 13:53:34
409
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-09-02 18:36:27
395
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AzvuQItPPs5WeC4tdtS/NQ
410
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A9jQbYCqjD6G4EoCFlJGyQ
396
411
397
412
398
__PACKAGE__->has_one(
413
__PACKAGE__->has_one(
(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 959-964 __PACKAGE__->has_many( Link Here
959
  { cascade_copy => 0, cascade_delete => 0 },
959
  { cascade_copy => 0, cascade_delete => 0 },
960
);
960
);
961
961
962
=head2 club_holds_to_patron_holds
963
964
Type: has_many
965
966
Related object: L<Koha::Schema::Result::ClubHoldsToPatronHold>
967
968
=cut
969
970
__PACKAGE__->has_many(
971
  "club_holds_to_patron_holds",
972
  "Koha::Schema::Result::ClubHoldsToPatronHold",
973
  { "foreign.patron_id" => "self.borrowernumber" },
974
  { cascade_copy => 0, cascade_delete => 0 },
975
);
976
962
=head2 course_instructors
977
=head2 course_instructors
963
978
964
Type: has_many
979
Type: has_many
Lines 1560-1567 Composing rels: L</aqorder_users> -> ordernumber Link Here
1560
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1575
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1561
1576
1562
1577
1563
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-05-22 04:33:29
1578
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-09-02 18:36:27
1564
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lbMdmIHlRt+zayG5+Rq4/w
1579
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KqqxD3z3T/gIP9zwm8PrmA
1565
1580
1566
__PACKAGE__->add_columns(
1581
__PACKAGE__->add_columns(
1567
    '+anonymized'    => { is_boolean => 1 },
1582
    '+anonymized'    => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Club.pm (-2 / +17 lines)
Lines 173-178 __PACKAGE__->has_many( Link Here
173
  { cascade_copy => 0, cascade_delete => 0 },
173
  { cascade_copy => 0, cascade_delete => 0 },
174
);
174
);
175
175
176
=head2 club_holds
177
178
Type: has_many
179
180
Related object: L<Koha::Schema::Result::ClubHold>
181
182
=cut
183
184
__PACKAGE__->has_many(
185
  "club_holds",
186
  "Koha::Schema::Result::ClubHold",
187
  { "foreign.club_id" => "self.id" },
188
  { cascade_copy => 0, cascade_delete => 0 },
189
);
190
176
=head2 club_template
191
=head2 club_template
177
192
178
Type: belongs_to
193
Type: belongs_to
Lines 189-196 __PACKAGE__->belongs_to( Link Here
189
);
204
);
190
205
191
206
192
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
207
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-09-02 18:36:27
193
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6EB6FURHN+brOhDoPZVeGQ
208
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AoRSMv2RBjjxSG9j/N8sBQ
194
209
195
210
196
# You can replace this text with custom content, and it will be preserved on regeneration
211
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ClubHold.pm (+162 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::ClubHold;
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::ClubHold
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<club_holds>
19
20
=cut
21
22
__PACKAGE__->table("club_holds");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 club_id
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 biblio_id
39
40
  data_type: 'integer'
41
  is_foreign_key: 1
42
  is_nullable: 0
43
44
=head2 item_id
45
46
  data_type: 'integer'
47
  is_foreign_key: 1
48
  is_nullable: 1
49
50
=head2 date_created
51
52
  data_type: 'timestamp'
53
  datetime_undef_if_invalid: 1
54
  default_value: current_timestamp
55
  is_nullable: 0
56
57
=cut
58
59
__PACKAGE__->add_columns(
60
  "id",
61
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62
  "club_id",
63
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64
  "biblio_id",
65
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66
  "item_id",
67
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
68
  "date_created",
69
  {
70
    data_type => "timestamp",
71
    datetime_undef_if_invalid => 1,
72
    default_value => \"current_timestamp",
73
    is_nullable => 0,
74
  },
75
);
76
77
=head1 PRIMARY KEY
78
79
=over 4
80
81
=item * L</id>
82
83
=back
84
85
=cut
86
87
__PACKAGE__->set_primary_key("id");
88
89
=head1 RELATIONS
90
91
=head2 biblio
92
93
Type: belongs_to
94
95
Related object: L<Koha::Schema::Result::Biblio>
96
97
=cut
98
99
__PACKAGE__->belongs_to(
100
  "biblio",
101
  "Koha::Schema::Result::Biblio",
102
  { biblionumber => "biblio_id" },
103
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
104
);
105
106
=head2 club
107
108
Type: belongs_to
109
110
Related object: L<Koha::Schema::Result::Club>
111
112
=cut
113
114
__PACKAGE__->belongs_to(
115
  "club",
116
  "Koha::Schema::Result::Club",
117
  { id => "club_id" },
118
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
119
);
120
121
=head2 club_holds_to_patron_holds
122
123
Type: has_many
124
125
Related object: L<Koha::Schema::Result::ClubHoldsToPatronHold>
126
127
=cut
128
129
__PACKAGE__->has_many(
130
  "club_holds_to_patron_holds",
131
  "Koha::Schema::Result::ClubHoldsToPatronHold",
132
  { "foreign.club_hold_id" => "self.id" },
133
  { cascade_copy => 0, cascade_delete => 0 },
134
);
135
136
=head2 item
137
138
Type: belongs_to
139
140
Related object: L<Koha::Schema::Result::Item>
141
142
=cut
143
144
__PACKAGE__->belongs_to(
145
  "item",
146
  "Koha::Schema::Result::Item",
147
  { itemnumber => "item_id" },
148
  {
149
    is_deferrable => 1,
150
    join_type     => "LEFT",
151
    on_delete     => "CASCADE",
152
    on_update     => "CASCADE",
153
  },
154
);
155
156
157
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-09-02 18:36:27
158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fC2qYBhwy6SPoF9NKl2y3g
159
160
161
# You can replace this text with custom code or comments, and it will be preserved on regeneration
162
1;
(-)a/Koha/Schema/Result/ClubHoldsToPatronHold.pm (+167 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::ClubHoldsToPatronHold;
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::ClubHoldsToPatronHold
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<club_holds_to_patron_holds>
19
20
=cut
21
22
__PACKAGE__->table("club_holds_to_patron_holds");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 club_hold_id
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 patron_id
39
40
  data_type: 'integer'
41
  is_foreign_key: 1
42
  is_nullable: 0
43
44
=head2 hold_id
45
46
  data_type: 'integer'
47
  is_foreign_key: 1
48
  is_nullable: 1
49
50
=head2 error_code
51
52
  data_type: 'enum'
53
  extra: {list => ["damaged","ageRestricted","itemAlreadyOnHold","tooManyHoldsForThisRecord","tooManyReservesToday","tooManyReserves","notReservable","cannotReserveFromOtherBranches","libraryNotFound","libraryNotPickupLocation","cannotBeTransferred"]}
54
  is_nullable: 1
55
56
=head2 error_message
57
58
  data_type: 'varchar'
59
  is_nullable: 1
60
  size: 100
61
62
=cut
63
64
__PACKAGE__->add_columns(
65
  "id",
66
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
67
  "club_hold_id",
68
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
69
  "patron_id",
70
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
71
  "hold_id",
72
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
73
  "error_code",
74
  {
75
    data_type => "enum",
76
    extra => {
77
      list => [
78
        "damaged",
79
        "ageRestricted",
80
        "itemAlreadyOnHold",
81
        "tooManyHoldsForThisRecord",
82
        "tooManyReservesToday",
83
        "tooManyReserves",
84
        "notReservable",
85
        "cannotReserveFromOtherBranches",
86
        "libraryNotFound",
87
        "libraryNotPickupLocation",
88
        "cannotBeTransferred",
89
      ],
90
    },
91
    is_nullable => 1,
92
  },
93
  "error_message",
94
  { data_type => "varchar", is_nullable => 1, size => 100 },
95
);
96
97
=head1 PRIMARY KEY
98
99
=over 4
100
101
=item * L</id>
102
103
=back
104
105
=cut
106
107
__PACKAGE__->set_primary_key("id");
108
109
=head1 RELATIONS
110
111
=head2 club_hold
112
113
Type: belongs_to
114
115
Related object: L<Koha::Schema::Result::ClubHold>
116
117
=cut
118
119
__PACKAGE__->belongs_to(
120
  "club_hold",
121
  "Koha::Schema::Result::ClubHold",
122
  { id => "club_hold_id" },
123
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
124
);
125
126
=head2 hold
127
128
Type: belongs_to
129
130
Related object: L<Koha::Schema::Result::Reserve>
131
132
=cut
133
134
__PACKAGE__->belongs_to(
135
  "hold",
136
  "Koha::Schema::Result::Reserve",
137
  { reserve_id => "hold_id" },
138
  {
139
    is_deferrable => 1,
140
    join_type     => "LEFT",
141
    on_delete     => "CASCADE",
142
    on_update     => "CASCADE",
143
  },
144
);
145
146
=head2 patron
147
148
Type: belongs_to
149
150
Related object: L<Koha::Schema::Result::Borrower>
151
152
=cut
153
154
__PACKAGE__->belongs_to(
155
  "patron",
156
  "Koha::Schema::Result::Borrower",
157
  { borrowernumber => "patron_id" },
158
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
159
);
160
161
162
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-09-02 19:29:15
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LO55zd7JbFvLxc1f9gWXew
164
165
166
# You can replace this text with custom code or comments, and it will be preserved on regeneration
167
1;
(-)a/Koha/Schema/Result/Item.pm (-2 / +17 lines)
Lines 511-516 __PACKAGE__->has_many( Link Here
511
  { cascade_copy => 0, cascade_delete => 0 },
511
  { cascade_copy => 0, cascade_delete => 0 },
512
);
512
);
513
513
514
=head2 club_holds
515
516
Type: has_many
517
518
Related object: L<Koha::Schema::Result::ClubHold>
519
520
=cut
521
522
__PACKAGE__->has_many(
523
  "club_holds",
524
  "Koha::Schema::Result::ClubHold",
525
  { "foreign.item_id" => "self.itemnumber" },
526
  { cascade_copy => 0, cascade_delete => 0 },
527
);
528
514
=head2 course_item
529
=head2 course_item
515
530
516
Type: might_have
531
Type: might_have
Lines 717-724 __PACKAGE__->has_many( Link Here
717
);
732
);
718
733
719
734
720
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-05-14 18:14:09
735
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-09-02 18:36:28
721
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wDXcErUYqg0aoQkzz3P5vg
736
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1gxw0D0XeEZi+GUNCVGmyQ
722
737
723
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
738
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
724
739
(-)a/Koha/Schema/Result/Reserve.pm (-3 / +17 lines)
Lines 280-285 __PACKAGE__->belongs_to( Link Here
280
  },
280
  },
281
);
281
);
282
282
283
=head2 club_holds_to_patron_holds
284
285
Type: has_many
286
287
Related object: L<Koha::Schema::Result::ClubHoldsToPatronHold>
288
289
=cut
290
291
__PACKAGE__->has_many(
292
  "club_holds_to_patron_holds",
293
  "Koha::Schema::Result::ClubHoldsToPatronHold",
294
  { "foreign.hold_id" => "self.reserve_id" },
295
  { cascade_copy => 0, cascade_delete => 0 },
296
);
297
283
=head2 itemnumber
298
=head2 itemnumber
284
299
285
Type: belongs_to
300
Type: belongs_to
Lines 321-328 __PACKAGE__->belongs_to( Link Here
321
);
336
);
322
337
323
338
324
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-06-17 07:24:39
339
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-09-02 18:36:28
325
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OMFqEWyKqFTcYj7vAFXy/g
340
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0QgNmfC7B4UNHidAtIiIFA
326
341
327
__PACKAGE__->belongs_to(
342
__PACKAGE__->belongs_to(
328
  "item",
343
  "item",
329
- 

Return to bug 19618