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

(-)a/Koha/Schema/Result/Accountline.pm (-4 / +4 lines)
Lines 208-221 __PACKAGE__->belongs_to( Link Here
208
  {
208
  {
209
    is_deferrable => 1,
209
    is_deferrable => 1,
210
    join_type     => "LEFT",
210
    join_type     => "LEFT",
211
    on_delete     => "CASCADE",
211
    on_delete     => "SET NULL",
212
    on_update     => "CASCADE",
212
    on_update     => "SET NULL",
213
  },
213
  },
214
);
214
);
215
215
216
216
217
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
217
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
218
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VLEuOBmnS+xgk7LXAqxtLw
218
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jUiCeLLPg5228rNEBW0w2g
219
219
220
220
221
# You can replace this text with custom content, and it will be preserved on regeneration
221
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbasket.pm (-7 / +7 lines)
Lines 203-209 __PACKAGE__->belongs_to( Link Here
203
  {
203
  {
204
    is_deferrable => 1,
204
    is_deferrable => 1,
205
    join_type     => "LEFT",
205
    join_type     => "LEFT",
206
    on_delete     => "CASCADE",
206
    on_delete     => "RESTRICT",
207
    on_update     => "CASCADE",
207
    on_update     => "CASCADE",
208
  },
208
  },
209
);
209
);
Lines 220-226 __PACKAGE__->belongs_to( Link Here
220
  "booksellerid",
220
  "booksellerid",
221
  "Koha::Schema::Result::Aqbookseller",
221
  "Koha::Schema::Result::Aqbookseller",
222
  { id => "booksellerid" },
222
  { id => "booksellerid" },
223
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
223
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" },
224
);
224
);
225
225
226
=head2 branch
226
=head2 branch
Lines 238-244 __PACKAGE__->belongs_to( Link Here
238
  {
238
  {
239
    is_deferrable => 1,
239
    is_deferrable => 1,
240
    join_type     => "LEFT",
240
    join_type     => "LEFT",
241
    on_delete     => "CASCADE",
241
    on_delete     => "SET NULL",
242
    on_update     => "CASCADE",
242
    on_update     => "CASCADE",
243
  },
243
  },
244
);
244
);
Lines 258-265 __PACKAGE__->belongs_to( Link Here
258
  {
258
  {
259
    is_deferrable => 1,
259
    is_deferrable => 1,
260
    join_type     => "LEFT",
260
    join_type     => "LEFT",
261
    on_delete     => "CASCADE",
261
    on_delete     => "RESTRICT",
262
    on_update     => "CASCADE",
262
    on_update     => "RESTRICT",
263
  },
263
  },
264
);
264
);
265
265
Lines 274-281 Composing rels: L</aqbasketusers> -> borrowernumber Link Here
274
__PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
274
__PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
275
275
276
276
277
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 16:31:18
277
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
278
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TCssMGPEqtE0MZ5INCufoA
278
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pT+YFf9nfD/dmBuE4RNCFw
279
279
280
280
281
# You can replace this text with custom content, and it will be preserved on regeneration
281
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqinvoice.pm (-3 / +3 lines)
Lines 150-163 __PACKAGE__->belongs_to( Link Here
150
  {
150
  {
151
    is_deferrable => 1,
151
    is_deferrable => 1,
152
    join_type     => "LEFT",
152
    join_type     => "LEFT",
153
    on_delete     => "CASCADE",
153
    on_delete     => "SET NULL",
154
    on_update     => "CASCADE",
154
    on_update     => "CASCADE",
155
  },
155
  },
156
);
156
);
157
157
158
158
159
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
159
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
160
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nV0lYm2w4xX8cwVmTVF3YQ
160
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3se4f767VfvBKaZ8tlXwHQ
161
161
162
162
163
# You can replace this text with custom content, and it will be preserved on regeneration
163
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqorder.pm (-4 / +4 lines)
Lines 421-427 __PACKAGE__->belongs_to( Link Here
421
  {
421
  {
422
    is_deferrable => 1,
422
    is_deferrable => 1,
423
    join_type     => "LEFT",
423
    join_type     => "LEFT",
424
    on_delete     => "CASCADE",
424
    on_delete     => "SET NULL",
425
    on_update     => "CASCADE",
425
    on_update     => "CASCADE",
426
  },
426
  },
427
);
427
);
Lines 441-447 __PACKAGE__->belongs_to( Link Here
441
  {
441
  {
442
    is_deferrable => 1,
442
    is_deferrable => 1,
443
    join_type     => "LEFT",
443
    join_type     => "LEFT",
444
    on_delete     => "CASCADE",
444
    on_delete     => "SET NULL",
445
    on_update     => "CASCADE",
445
    on_update     => "CASCADE",
446
  },
446
  },
447
);
447
);
Lines 467-474 __PACKAGE__->belongs_to( Link Here
467
);
467
);
468
468
469
469
470
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-04-19 15:25:43
470
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
471
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XGQHKw2/pml/kFe89vbvXw
471
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u5KHnXS5hMmqpqufIEkPig
472
472
473
473
474
# You can replace this text with custom content, and it will be preserved on regeneration
474
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AqordersTransfer.pm (-4 / +4 lines)
Lines 101-107 __PACKAGE__->belongs_to( Link Here
101
  {
101
  {
102
    is_deferrable => 1,
102
    is_deferrable => 1,
103
    join_type     => "LEFT",
103
    join_type     => "LEFT",
104
    on_delete     => "CASCADE",
104
    on_delete     => "SET NULL",
105
    on_update     => "CASCADE",
105
    on_update     => "CASCADE",
106
  },
106
  },
107
);
107
);
Lines 121-134 __PACKAGE__->belongs_to( Link Here
121
  {
121
  {
122
    is_deferrable => 1,
122
    is_deferrable => 1,
123
    join_type     => "LEFT",
123
    join_type     => "LEFT",
124
    on_delete     => "CASCADE",
124
    on_delete     => "SET NULL",
125
    on_update     => "CASCADE",
125
    on_update     => "CASCADE",
126
  },
126
  },
127
);
127
);
128
128
129
129
130
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
130
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1WX3cQyoYmNmPed+OqdUNA
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z6+vESlzZKjZloNvrEHpxA
132
132
133
133
134
# You can replace this text with custom code or comments, and it will be preserved on regeneration
134
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthorisedValuesBranch.pm (-4 / +4 lines)
Lines 63-69 __PACKAGE__->belongs_to( Link Here
63
    is_deferrable => 1,
63
    is_deferrable => 1,
64
    join_type     => "LEFT",
64
    join_type     => "LEFT",
65
    on_delete     => "CASCADE",
65
    on_delete     => "CASCADE",
66
    on_update     => "CASCADE",
66
    on_update     => "RESTRICT",
67
  },
67
  },
68
);
68
);
69
69
Lines 83-95 __PACKAGE__->belongs_to( Link Here
83
    is_deferrable => 1,
83
    is_deferrable => 1,
84
    join_type     => "LEFT",
84
    join_type     => "LEFT",
85
    on_delete     => "CASCADE",
85
    on_delete     => "CASCADE",
86
    on_update     => "CASCADE",
86
    on_update     => "RESTRICT",
87
  },
87
  },
88
);
88
);
89
89
90
90
91
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
91
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k6hCbzMVZ1VRsubvdrZMYQ
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FlVw5Eu4bXF2ygD0QkwwCg
93
93
94
94
95
# You can replace this text with custom content, and it will be preserved on regeneration
95
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Borrower.pm (-4 / +4 lines)
Lines 708-714 __PACKAGE__->belongs_to( Link Here
708
  "branchcode",
708
  "branchcode",
709
  "Koha::Schema::Result::Branch",
709
  "Koha::Schema::Result::Branch",
710
  { branchcode => "branchcode" },
710
  { branchcode => "branchcode" },
711
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
711
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
712
);
712
);
713
713
714
=head2 categorycode
714
=head2 categorycode
Lines 723-729 __PACKAGE__->belongs_to( Link Here
723
  "categorycode",
723
  "categorycode",
724
  "Koha::Schema::Result::Category",
724
  "Koha::Schema::Result::Category",
725
  { categorycode => "categorycode" },
725
  { categorycode => "categorycode" },
726
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
726
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
727
);
727
);
728
728
729
=head2 course_instructors
729
=head2 course_instructors
Lines 1072-1079 Composing rels: L</course_instructors> -> course Link Here
1072
__PACKAGE__->many_to_many("courses", "course_instructors", "course");
1072
__PACKAGE__->many_to_many("courses", "course_instructors", "course");
1073
1073
1074
1074
1075
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 16:31:19
1075
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
1076
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z4kW3xYX1CyrwvGdZu32nA
1076
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5cfpOojccKCoVRMj+0mWHg
1077
1077
1078
1078
1079
# You can replace this text with custom content, and it will be preserved on regeneration
1079
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerAttributeTypesBranch.pm (-4 / +4 lines)
Lines 64-70 __PACKAGE__->belongs_to( Link Here
64
    is_deferrable => 1,
64
    is_deferrable => 1,
65
    join_type     => "LEFT",
65
    join_type     => "LEFT",
66
    on_delete     => "CASCADE",
66
    on_delete     => "CASCADE",
67
    on_update     => "CASCADE",
67
    on_update     => "RESTRICT",
68
  },
68
  },
69
);
69
);
70
70
Lines 84-96 __PACKAGE__->belongs_to( Link Here
84
    is_deferrable => 1,
84
    is_deferrable => 1,
85
    join_type     => "LEFT",
85
    join_type     => "LEFT",
86
    on_delete     => "CASCADE",
86
    on_delete     => "CASCADE",
87
    on_update     => "CASCADE",
87
    on_update     => "RESTRICT",
88
  },
88
  },
89
);
89
);
90
90
91
91
92
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
92
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/ppDBtfKZvUNcERWFbLuuw
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MA/VDd/K/RTgZ9TLy0K1gw
94
94
95
95
96
# You can replace this text with custom content, and it will be preserved on regeneration
96
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CategoriesBranch.pm (-4 / +4 lines)
Lines 64-70 __PACKAGE__->belongs_to( Link Here
64
    is_deferrable => 1,
64
    is_deferrable => 1,
65
    join_type     => "LEFT",
65
    join_type     => "LEFT",
66
    on_delete     => "CASCADE",
66
    on_delete     => "CASCADE",
67
    on_update     => "CASCADE",
67
    on_update     => "RESTRICT",
68
  },
68
  },
69
);
69
);
70
70
Lines 84-96 __PACKAGE__->belongs_to( Link Here
84
    is_deferrable => 1,
84
    is_deferrable => 1,
85
    join_type     => "LEFT",
85
    join_type     => "LEFT",
86
    on_delete     => "CASCADE",
86
    on_delete     => "CASCADE",
87
    on_update     => "CASCADE",
87
    on_update     => "RESTRICT",
88
  },
88
  },
89
);
89
);
90
90
91
91
92
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
92
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9fXKFDUQsOx+uqF+slRhSw
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5NpXKN72zzNcHauiDZfdEA
94
94
95
95
96
# You can replace this text with custom content, and it will be preserved on regeneration
96
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ClassSource.pm (-3 / +3 lines)
Lines 94-105 __PACKAGE__->belongs_to( Link Here
94
  "class_sort_rule",
94
  "class_sort_rule",
95
  "Koha::Schema::Result::ClassSortRule",
95
  "Koha::Schema::Result::ClassSortRule",
96
  { class_sort_rule => "class_sort_rule" },
96
  { class_sort_rule => "class_sort_rule" },
97
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
98
);
98
);
99
99
100
100
101
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
101
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OPkfouKUejU6oCgy58yt6Q
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2O58Q7wdbfAl6xmiW02PAA
103
103
104
104
105
# You can replace this text with custom content, and it will be preserved on regeneration
105
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CollectionsTracking.pm (+77 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::CollectionsTracking;
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::CollectionsTracking
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<collections_tracking>
19
20
=cut
21
22
__PACKAGE__->table("collections_tracking");
23
24
=head1 ACCESSORS
25
26
=head2 collections_tracking_id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 colid
33
34
  data_type: 'integer'
35
  default_value: 0
36
  is_nullable: 0
37
38
collections.colId
39
40
=head2 itemnumber
41
42
  data_type: 'integer'
43
  default_value: 0
44
  is_nullable: 0
45
46
items.itemnumber
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "collections_tracking_id",
52
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53
  "colid",
54
  { data_type => "integer", default_value => 0, is_nullable => 0 },
55
  "itemnumber",
56
  { data_type => "integer", default_value => 0, is_nullable => 0 },
57
);
58
59
=head1 PRIMARY KEY
60
61
=over 4
62
63
=item * L</collections_tracking_id>
64
65
=back
66
67
=cut
68
69
__PACKAGE__->set_primary_key("collections_tracking_id");
70
71
72
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
73
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aV5bgiXNrskXo+q+WLuwPg
74
75
76
# You can replace this text with custom code or comments, and it will be preserved on regeneration
77
1;
(-)a/Koha/Schema/Result/CourseInstructor.pm (-3 / +3 lines)
Lines 87-98 __PACKAGE__->belongs_to( Link Here
87
  "course",
87
  "course",
88
  "Koha::Schema::Result::Course",
88
  "Koha::Schema::Result::Course",
89
  { course_id => "course_id" },
89
  { course_id => "course_id" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
91
);
91
);
92
92
93
93
94
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
94
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dIemqF/uRWLNN4IMCHZxRA
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7vP3bJ0YA6LEepYOaNg++A
96
96
97
97
98
# You can replace this text with custom content, and it will be preserved on regeneration
98
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CourseReserve.pm (-3 / +3 lines)
Lines 121-132 __PACKAGE__->belongs_to( Link Here
121
  "course",
121
  "course",
122
  "Koha::Schema::Result::Course",
122
  "Koha::Schema::Result::Course",
123
  { course_id => "course_id" },
123
  { course_id => "course_id" },
124
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
124
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
125
);
125
);
126
126
127
127
128
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
128
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9KuuUyFReuw+PAlLW84yXQ
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SSTJhsNOuUlxr/CsDs08pQ
130
130
131
131
132
# You can replace this text with custom content, and it will be preserved on regeneration
132
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CreatorBatch.pm (-4 / +4 lines)
Lines 150-156 __PACKAGE__->belongs_to( Link Here
150
  "branch_code",
150
  "branch_code",
151
  "Koha::Schema::Result::Branch",
151
  "Koha::Schema::Result::Branch",
152
  { branchcode => "branch_code" },
152
  { branchcode => "branch_code" },
153
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
153
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
154
);
154
);
155
155
156
=head2 item_number
156
=head2 item_number
Lines 169-181 __PACKAGE__->belongs_to( Link Here
169
    is_deferrable => 1,
169
    is_deferrable => 1,
170
    join_type     => "LEFT",
170
    join_type     => "LEFT",
171
    on_delete     => "CASCADE",
171
    on_delete     => "CASCADE",
172
    on_update     => "CASCADE",
172
    on_update     => "RESTRICT",
173
  },
173
  },
174
);
174
);
175
175
176
176
177
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
177
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
178
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:w5Nfrm8a8ajsC0bLBACaWg
178
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x9PaYKzfg8jT6zFP4IwhBA
179
179
180
180
181
# You can replace this text with custom content, and it will be preserved on regeneration
181
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportRecord.pm (-6 / +6 lines)
Lines 254-277 __PACKAGE__->has_many( Link Here
254
  { cascade_copy => 0, cascade_delete => 0 },
254
  { cascade_copy => 0, cascade_delete => 0 },
255
);
255
);
256
256
257
=head2 import_records_matches
257
=head2 import_record_matches
258
258
259
Type: has_many
259
Type: has_many
260
260
261
Related object: L<Koha::Schema::Result::ImportRecordMatches>
261
Related object: L<Koha::Schema::Result::ImportRecordMatch>
262
262
263
=cut
263
=cut
264
264
265
__PACKAGE__->has_many(
265
__PACKAGE__->has_many(
266
  "import_records_matches",
266
  "import_record_matches",
267
  "Koha::Schema::Result::ImportRecordMatches",
267
  "Koha::Schema::Result::ImportRecordMatch",
268
  { "foreign.import_record_id" => "self.import_record_id" },
268
  { "foreign.import_record_id" => "self.import_record_id" },
269
  { cascade_copy => 0, cascade_delete => 0 },
269
  { cascade_copy => 0, cascade_delete => 0 },
270
);
270
);
271
271
272
272
273
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
273
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
274
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e71umJ0QmfPBvlxmzbClng
274
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jhzXlqw5mA1lGsI9SZEv/Q
275
275
276
276
277
# You can replace this text with custom content, and it will be preserved on regeneration
277
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportRecordMatch.pm (+77 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportRecordMatch;
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::ImportRecordMatch
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<import_record_matches>
19
20
=cut
21
22
__PACKAGE__->table("import_record_matches");
23
24
=head1 ACCESSORS
25
26
=head2 import_record_id
27
28
  data_type: 'integer'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
32
=head2 candidate_match_id
33
34
  data_type: 'integer'
35
  is_nullable: 0
36
37
=head2 score
38
39
  data_type: 'integer'
40
  default_value: 0
41
  is_nullable: 0
42
43
=cut
44
45
__PACKAGE__->add_columns(
46
  "import_record_id",
47
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
48
  "candidate_match_id",
49
  { data_type => "integer", is_nullable => 0 },
50
  "score",
51
  { data_type => "integer", default_value => 0, is_nullable => 0 },
52
);
53
54
=head1 RELATIONS
55
56
=head2 import_record
57
58
Type: belongs_to
59
60
Related object: L<Koha::Schema::Result::ImportRecord>
61
62
=cut
63
64
__PACKAGE__->belongs_to(
65
  "import_record",
66
  "Koha::Schema::Result::ImportRecord",
67
  { import_record_id => "import_record_id" },
68
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
69
);
70
71
72
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
73
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hJW36EeP+H8+0/Ij3iuIFw
74
75
76
# You can replace this text with custom code or comments, and it will be preserved on regeneration
77
1;
(-)a/Koha/Schema/Result/Issue.pm (-4 / +4 lines)
Lines 154-160 __PACKAGE__->belongs_to( Link Here
154
  {
154
  {
155
    is_deferrable => 1,
155
    is_deferrable => 1,
156
    join_type     => "LEFT",
156
    join_type     => "LEFT",
157
    on_delete     => "CASCADE",
157
    on_delete     => "RESTRICT",
158
    on_update     => "CASCADE",
158
    on_update     => "CASCADE",
159
  },
159
  },
160
);
160
);
Lines 174-187 __PACKAGE__->belongs_to( Link Here
174
  {
174
  {
175
    is_deferrable => 1,
175
    is_deferrable => 1,
176
    join_type     => "LEFT",
176
    join_type     => "LEFT",
177
    on_delete     => "CASCADE",
177
    on_delete     => "RESTRICT",
178
    on_update     => "CASCADE",
178
    on_update     => "CASCADE",
179
  },
179
  },
180
);
180
);
181
181
182
182
183
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
183
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZEh31EKBmURMKxDxI+H3EA
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2SJJ3az4Ml9hKEQvNH3+Kw
185
185
186
__PACKAGE__->belongs_to(
186
__PACKAGE__->belongs_to(
187
    "borrower",
187
    "borrower",
(-)a/Koha/Schema/Result/Item.pm (-4 / +4 lines)
Lines 508-514 __PACKAGE__->belongs_to( Link Here
508
  {
508
  {
509
    is_deferrable => 1,
509
    is_deferrable => 1,
510
    join_type     => "LEFT",
510
    join_type     => "LEFT",
511
    on_delete     => "CASCADE",
511
    on_delete     => "RESTRICT",
512
    on_update     => "CASCADE",
512
    on_update     => "CASCADE",
513
  },
513
  },
514
);
514
);
Lines 528-534 __PACKAGE__->belongs_to( Link Here
528
  {
528
  {
529
    is_deferrable => 1,
529
    is_deferrable => 1,
530
    join_type     => "LEFT",
530
    join_type     => "LEFT",
531
    on_delete     => "CASCADE",
531
    on_delete     => "RESTRICT",
532
    on_update     => "CASCADE",
532
    on_update     => "CASCADE",
533
  },
533
  },
534
);
534
);
Lines 609-616 __PACKAGE__->might_have( Link Here
609
);
609
);
610
610
611
611
612
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-12-19 06:29:02
612
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
613
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h6fPG62SifJ5T8QKPZNBBw
613
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rc89LTrsDtt8Y6yXVUdhMA
614
614
615
__PACKAGE__->belongs_to(
615
__PACKAGE__->belongs_to(
616
    "biblio",
616
    "biblio",
(-)a/Koha/Schema/Result/MessageQueue.pm (-3 / +3 lines)
Lines 165-176 __PACKAGE__->belongs_to( Link Here
165
  "message_transport_type",
165
  "message_transport_type",
166
  "Koha::Schema::Result::MessageTransportType",
166
  "Koha::Schema::Result::MessageTransportType",
167
  { message_transport_type => "message_transport_type" },
167
  { message_transport_type => "message_transport_type" },
168
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
168
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" },
169
);
169
);
170
170
171
171
172
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
172
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+gmGYPCtwCYKHAzfd9xByQ
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YWxM2O2W/h34qqIOIpzOtw
174
174
175
175
176
# You can replace this text with custom content, and it will be preserved on regeneration
176
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OldIssue.pm (-6 / +6 lines)
Lines 154-161 __PACKAGE__->belongs_to( Link Here
154
  {
154
  {
155
    is_deferrable => 1,
155
    is_deferrable => 1,
156
    join_type     => "LEFT",
156
    join_type     => "LEFT",
157
    on_delete     => "CASCADE",
157
    on_delete     => "SET NULL",
158
    on_update     => "CASCADE",
158
    on_update     => "SET NULL",
159
  },
159
  },
160
);
160
);
161
161
Lines 174-187 __PACKAGE__->belongs_to( Link Here
174
  {
174
  {
175
    is_deferrable => 1,
175
    is_deferrable => 1,
176
    join_type     => "LEFT",
176
    join_type     => "LEFT",
177
    on_delete     => "CASCADE",
177
    on_delete     => "SET NULL",
178
    on_update     => "CASCADE",
178
    on_update     => "SET NULL",
179
  },
179
  },
180
);
180
);
181
181
182
182
183
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
183
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uPOxNROoMMRZ0qZsXsxEjA
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sgsDHihVYHrTycbaqoGbaQ
185
185
186
186
187
# You can replace this text with custom content, and it will be preserved on regeneration
187
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OldReserve.pm (-8 / +8 lines)
Lines 215-222 __PACKAGE__->belongs_to( Link Here
215
  {
215
  {
216
    is_deferrable => 1,
216
    is_deferrable => 1,
217
    join_type     => "LEFT",
217
    join_type     => "LEFT",
218
    on_delete     => "CASCADE",
218
    on_delete     => "SET NULL",
219
    on_update     => "CASCADE",
219
    on_update     => "SET NULL",
220
  },
220
  },
221
);
221
);
222
222
Lines 235-242 __PACKAGE__->belongs_to( Link Here
235
  {
235
  {
236
    is_deferrable => 1,
236
    is_deferrable => 1,
237
    join_type     => "LEFT",
237
    join_type     => "LEFT",
238
    on_delete     => "CASCADE",
238
    on_delete     => "SET NULL",
239
    on_update     => "CASCADE",
239
    on_update     => "SET NULL",
240
  },
240
  },
241
);
241
);
242
242
Lines 255-268 __PACKAGE__->belongs_to( Link Here
255
  {
255
  {
256
    is_deferrable => 1,
256
    is_deferrable => 1,
257
    join_type     => "LEFT",
257
    join_type     => "LEFT",
258
    on_delete     => "CASCADE",
258
    on_delete     => "SET NULL",
259
    on_update     => "CASCADE",
259
    on_update     => "SET NULL",
260
  },
260
  },
261
);
261
);
262
262
263
263
264
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
264
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
265
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g/WiYGPOyzJGtMWiAHvIxA
265
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CMfQmK2sJxQB0FBb0X12ug
266
266
267
267
268
# You can replace this text with custom content, and it will be preserved on regeneration
268
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Review.pm (-3 / +3 lines)
Lines 127-140 __PACKAGE__->belongs_to( Link Here
127
  {
127
  {
128
    is_deferrable => 1,
128
    is_deferrable => 1,
129
    join_type     => "LEFT",
129
    join_type     => "LEFT",
130
    on_delete     => "CASCADE",
130
    on_delete     => "SET NULL",
131
    on_update     => "CASCADE",
131
    on_update     => "CASCADE",
132
  },
132
  },
133
);
133
);
134
134
135
135
136
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
136
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
137
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/gg7wEkOzJ7yI3UXoDcQKA
137
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u+R08bCdVQA697aPo9zEUA
138
138
139
139
140
# You can replace this text with custom content, and it will be preserved on regeneration
140
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Subscription.pm (-4 / +4 lines)
Lines 388-394 __PACKAGE__->belongs_to( Link Here
388
  {
388
  {
389
    is_deferrable => 1,
389
    is_deferrable => 1,
390
    join_type     => "LEFT",
390
    join_type     => "LEFT",
391
    on_delete     => "CASCADE",
391
    on_delete     => "SET NULL",
392
    on_update     => "CASCADE",
392
    on_update     => "CASCADE",
393
  },
393
  },
394
);
394
);
Lines 408-414 __PACKAGE__->belongs_to( Link Here
408
  {
408
  {
409
    is_deferrable => 1,
409
    is_deferrable => 1,
410
    join_type     => "LEFT",
410
    join_type     => "LEFT",
411
    on_delete     => "CASCADE",
411
    on_delete     => "SET NULL",
412
    on_update     => "CASCADE",
412
    on_update     => "CASCADE",
413
  },
413
  },
414
);
414
);
Lines 429-436 __PACKAGE__->has_many( Link Here
429
);
429
);
430
430
431
431
432
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 02:42:01
432
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
433
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JoTdms86n/xfPo8YUnDHUQ
433
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:57kc1/B3eNKQXAk9tlOy0A
434
434
435
435
436
# You can replace this text with custom content, and it will be preserved on regeneration
436
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelfcontent.pm (-4 / +4 lines)
Lines 117-124 __PACKAGE__->belongs_to( Link Here
117
  {
117
  {
118
    is_deferrable => 1,
118
    is_deferrable => 1,
119
    join_type     => "LEFT",
119
    join_type     => "LEFT",
120
    on_delete     => "CASCADE",
120
    on_delete     => "SET NULL",
121
    on_update     => "CASCADE",
121
    on_update     => "SET NULL",
122
  },
122
  },
123
);
123
);
124
124
Lines 138-145 __PACKAGE__->belongs_to( Link Here
138
);
138
);
139
139
140
140
141
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
141
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
142
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nhcu0n7BoSNsoY76SYSYFw
142
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ie3Gx+/HthZQ/4fHjcPF0w
143
143
144
144
145
# You can replace this text with custom content, and it will be preserved on regeneration
145
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelfshare.pm (-4 / +4 lines)
Lines 101-108 __PACKAGE__->belongs_to( Link Here
101
  {
101
  {
102
    is_deferrable => 1,
102
    is_deferrable => 1,
103
    join_type     => "LEFT",
103
    join_type     => "LEFT",
104
    on_delete     => "CASCADE",
104
    on_delete     => "SET NULL",
105
    on_update     => "CASCADE",
105
    on_update     => "SET NULL",
106
  },
106
  },
107
);
107
);
108
108
Lines 122-129 __PACKAGE__->belongs_to( Link Here
122
);
122
);
123
123
124
124
125
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
125
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Eu/4NPwsXI+UMs5QWVsUmA
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gle9hUqefRoNSilv0gFc1w
127
127
128
128
129
# You can replace this text with custom content, and it will be preserved on regeneration
129
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelve.pm (-4 / +4 lines)
Lines 135-142 __PACKAGE__->belongs_to( Link Here
135
  {
135
  {
136
    is_deferrable => 1,
136
    is_deferrable => 1,
137
    join_type     => "LEFT",
137
    join_type     => "LEFT",
138
    on_delete     => "CASCADE",
138
    on_delete     => "SET NULL",
139
    on_update     => "CASCADE",
139
    on_update     => "SET NULL",
140
  },
140
  },
141
);
141
);
142
142
Lines 171-178 __PACKAGE__->has_many( Link Here
171
);
171
);
172
172
173
173
174
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
174
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdBpWgSdrE0l13vKgDRcGg
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xRDCzpS+CXPdp4Mlp2WP6A
176
176
177
177
178
# You can replace this text with custom content, and it will be preserved on regeneration
178
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Z3950server.pm (-5 / +4 lines)
Lines 94-100 __PACKAGE__->table("z3950servers"); Link Here
94
94
95
  data_type: 'enum'
95
  data_type: 'enum'
96
  default_value: 'primary'
96
  default_value: 'primary'
97
  extra: {list => ["primary","secondary"]}
97
  extra: {list => ["primary","secondary",""]}
98
  is_nullable: 0
98
  is_nullable: 0
99
99
100
=head2 type
100
=head2 type
Lines 152-158 __PACKAGE__->add_columns( Link Here
152
  {
152
  {
153
    data_type => "enum",
153
    data_type => "enum",
154
    default_value => "primary",
154
    default_value => "primary",
155
    extra => { list => ["primary", "secondary"] },
155
    extra => { list => ["primary", "secondary", ""] },
156
    is_nullable => 0,
156
    is_nullable => 0,
157
  },
157
  },
158
  "type",
158
  "type",
Lines 188-195 __PACKAGE__->add_columns( Link Here
188
__PACKAGE__->set_primary_key("id");
188
__PACKAGE__->set_primary_key("id");
189
189
190
190
191
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
191
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j/AgGQDMyR5wm1wooSYYDw
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BA+II2AVWOTLfgbko1GAOA
193
193
194
194
195
# You can replace this text with custom content, and it will be preserved on regeneration
195
# You can replace this text with custom content, and it will be preserved on regeneration
196
- 

Return to bug 12558