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

(-)a/Koha/Schema.pm (-3 / +2 lines)
Lines 1-4 Link Here
1
use utf8;
2
package Koha::Schema;
1
package Koha::Schema;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
Lines 12-19 use base 'DBIx::Class::Schema'; Link Here
12
__PACKAGE__->load_namespaces;
11
__PACKAGE__->load_namespaces;
13
12
14
13
15
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
14
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
16
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oDUxXckmfk6H9YCjW8PZTw
15
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UR5Z9l+TKrTAZ2DlP/3PeA
17
16
18
17
19
# You can replace this text with custom content, and it will be preserved on regeneration
18
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Accountline.pm (-34 / +11 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Accountline;
1
package Koha::Schema::Result::Accountline;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Accountline
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<accountlines>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Accountline
19
15
20
=cut
16
=cut
21
17
Lines 51-57 __PACKAGE__->table("accountlines"); Link Here
51
=head2 date
47
=head2 date
52
48
53
  data_type: 'date'
49
  data_type: 'date'
54
  datetime_undef_if_invalid: 1
55
  is_nullable: 1
50
  is_nullable: 1
56
51
57
=head2 amount
52
=head2 amount
Lines 91-97 __PACKAGE__->table("accountlines"); Link Here
91
=head2 timestamp
86
=head2 timestamp
92
87
93
  data_type: 'timestamp'
88
  data_type: 'timestamp'
94
  datetime_undef_if_invalid: 1
95
  default_value: current_timestamp
89
  default_value: current_timestamp
96
  is_nullable: 0
90
  is_nullable: 0
97
91
Lines 134-140 __PACKAGE__->add_columns( Link Here
134
  "itemnumber",
128
  "itemnumber",
135
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
129
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
136
  "date",
130
  "date",
137
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
131
  { data_type => "date", is_nullable => 1 },
138
  "amount",
132
  "amount",
139
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
133
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
140
  "description",
134
  "description",
Lines 149-158 __PACKAGE__->add_columns( Link Here
149
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
143
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
150
  "timestamp",
144
  "timestamp",
151
  {
145
  {
152
    data_type => "timestamp",
146
    data_type     => "timestamp",
153
    datetime_undef_if_invalid => 1,
154
    default_value => \"current_timestamp",
147
    default_value => \"current_timestamp",
155
    is_nullable => 0,
148
    is_nullable   => 0,
156
  },
149
  },
157
  "notify_id",
150
  "notify_id",
158
  { data_type => "integer", default_value => 0, is_nullable => 0 },
151
  { data_type => "integer", default_value => 0, is_nullable => 0 },
Lines 163-179 __PACKAGE__->add_columns( Link Here
163
  "manager_id",
156
  "manager_id",
164
  { data_type => "integer", is_nullable => 1 },
157
  { data_type => "integer", is_nullable => 1 },
165
);
158
);
166
167
=head1 PRIMARY KEY
168
169
=over 4
170
171
=item * L</accountlines_id>
172
173
=back
174
175
=cut
176
177
__PACKAGE__->set_primary_key("accountlines_id");
159
__PACKAGE__->set_primary_key("accountlines_id");
178
160
179
=head1 RELATIONS
161
=head1 RELATIONS
Lines 190-196 __PACKAGE__->belongs_to( Link Here
190
  "borrowernumber",
172
  "borrowernumber",
191
  "Koha::Schema::Result::Borrower",
173
  "Koha::Schema::Result::Borrower",
192
  { borrowernumber => "borrowernumber" },
174
  { borrowernumber => "borrowernumber" },
193
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
175
  { on_delete => "CASCADE", on_update => "CASCADE" },
194
);
176
);
195
177
196
=head2 itemnumber
178
=head2 itemnumber
Lines 205-221 __PACKAGE__->belongs_to( Link Here
205
  "itemnumber",
187
  "itemnumber",
206
  "Koha::Schema::Result::Item",
188
  "Koha::Schema::Result::Item",
207
  { itemnumber => "itemnumber" },
189
  { itemnumber => "itemnumber" },
208
  {
190
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
209
    is_deferrable => 1,
210
    join_type     => "LEFT",
211
    on_delete     => "CASCADE",
212
    on_update     => "CASCADE",
213
  },
214
);
191
);
215
192
216
193
217
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
194
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
218
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VLEuOBmnS+xgk7LXAqxtLw
195
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d8U0e0A5FNfsKd1HBVPpiA
219
196
220
197
221
# You can replace this text with custom content, and it will be preserved on regeneration
198
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Accountoffset.pm (-15 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Accountoffset;
1
package Koha::Schema::Result::Accountoffset;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Accountoffset
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<accountoffsets>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Accountoffset
19
15
20
=cut
16
=cut
21
17
Lines 51-57 __PACKAGE__->table("accountoffsets"); Link Here
51
=head2 timestamp
47
=head2 timestamp
52
48
53
  data_type: 'timestamp'
49
  data_type: 'timestamp'
54
  datetime_undef_if_invalid: 1
55
  default_value: current_timestamp
50
  default_value: current_timestamp
56
  is_nullable: 0
51
  is_nullable: 0
57
52
Lines 73-82 __PACKAGE__->add_columns( Link Here
73
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
68
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
74
  "timestamp",
69
  "timestamp",
75
  {
70
  {
76
    data_type => "timestamp",
71
    data_type     => "timestamp",
77
    datetime_undef_if_invalid => 1,
78
    default_value => \"current_timestamp",
72
    default_value => \"current_timestamp",
79
    is_nullable => 0,
73
    is_nullable   => 0,
80
  },
74
  },
81
);
75
);
82
76
Lines 94-105 __PACKAGE__->belongs_to( Link Here
94
  "borrowernumber",
88
  "borrowernumber",
95
  "Koha::Schema::Result::Borrower",
89
  "Koha::Schema::Result::Borrower",
96
  { borrowernumber => "borrowernumber" },
90
  { borrowernumber => "borrowernumber" },
97
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
91
  { on_delete => "CASCADE", on_update => "CASCADE" },
98
);
92
);
99
93
100
94
101
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
95
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OTfcUiJCPb5aU/gjqAb/bA
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VfjbPMGKFa/V35uif0H+jw
103
97
104
98
105
# You can replace this text with custom content, and it will be preserved on regeneration
99
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Alert.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Alert;
1
package Koha::Schema::Result::Alert;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Alert
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<alert>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Alert
19
15
20
=cut
16
=cut
21
17
Lines 61-82 __PACKAGE__->add_columns( Link Here
61
  "externalid",
57
  "externalid",
62
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
58
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
63
);
59
);
64
65
=head1 PRIMARY KEY
66
67
=over 4
68
69
=item * L</alertid>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("alertid");
60
__PACKAGE__->set_primary_key("alertid");
76
61
77
62
78
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
63
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O4b7dlkDRkE6WLPKI5AO+A
64
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bjUF27HFuGmH2o/0tWQaFQ
80
65
81
66
82
# You can replace this text with custom content, and it will be preserved on regeneration
67
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbasket.pm (-63 / +36 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqbasket;
1
package Koha::Schema::Result::Aqbasket;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqbasket
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqbasket>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqbasket
19
15
20
=cut
16
=cut
21
17
Lines 54-66 __PACKAGE__->table("aqbasket"); Link Here
54
=head2 creationdate
50
=head2 creationdate
55
51
56
  data_type: 'date'
52
  data_type: 'date'
57
  datetime_undef_if_invalid: 1
58
  is_nullable: 1
53
  is_nullable: 1
59
54
60
=head2 closedate
55
=head2 closedate
61
56
62
  data_type: 'date'
57
  data_type: 'date'
63
  datetime_undef_if_invalid: 1
64
  is_nullable: 1
58
  is_nullable: 1
65
59
66
=head2 booksellerid
60
=head2 booksellerid
Lines 113-121 __PACKAGE__->add_columns( Link Here
113
  "contractnumber",
107
  "contractnumber",
114
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
108
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
115
  "creationdate",
109
  "creationdate",
116
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
110
  { data_type => "date", is_nullable => 1 },
117
  "closedate",
111
  "closedate",
118
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
112
  { data_type => "date", is_nullable => 1 },
119
  "booksellerid",
113
  "booksellerid",
120
  {
114
  {
121
    data_type      => "integer",
115
    data_type      => "integer",
Lines 134-227 __PACKAGE__->add_columns( Link Here
134
  "billingplace",
128
  "billingplace",
135
  { data_type => "varchar", is_nullable => 1, size => 10 },
129
  { data_type => "varchar", is_nullable => 1, size => 10 },
136
);
130
);
137
138
=head1 PRIMARY KEY
139
140
=over 4
141
142
=item * L</basketno>
143
144
=back
145
146
=cut
147
148
__PACKAGE__->set_primary_key("basketno");
131
__PACKAGE__->set_primary_key("basketno");
149
132
150
=head1 RELATIONS
133
=head1 RELATIONS
151
134
152
=head2 aqorders
135
=head2 booksellerid
153
136
154
Type: has_many
137
Type: belongs_to
155
138
156
Related object: L<Koha::Schema::Result::Aqorder>
139
Related object: L<Koha::Schema::Result::Aqbookseller>
157
140
158
=cut
141
=cut
159
142
160
__PACKAGE__->has_many(
143
__PACKAGE__->belongs_to(
161
  "aqorders",
144
  "booksellerid",
162
  "Koha::Schema::Result::Aqorder",
145
  "Koha::Schema::Result::Aqbookseller",
163
  { "foreign.basketno" => "self.basketno" },
146
  { id => "booksellerid" },
164
  { cascade_copy => 0, cascade_delete => 0 },
147
  { on_delete => "CASCADE", on_update => "CASCADE" },
165
);
148
);
166
149
167
=head2 basketgroupid
150
=head2 contractnumber
168
151
169
Type: belongs_to
152
Type: belongs_to
170
153
171
Related object: L<Koha::Schema::Result::Aqbasketgroup>
154
Related object: L<Koha::Schema::Result::Aqcontract>
172
155
173
=cut
156
=cut
174
157
175
__PACKAGE__->belongs_to(
158
__PACKAGE__->belongs_to(
176
  "basketgroupid",
159
  "contractnumber",
177
  "Koha::Schema::Result::Aqbasketgroup",
160
  "Koha::Schema::Result::Aqcontract",
178
  { id => "basketgroupid" },
161
  { contractnumber => "contractnumber" },
179
  {
162
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
180
    is_deferrable => 1,
181
    join_type     => "LEFT",
182
    on_delete     => "CASCADE",
183
    on_update     => "CASCADE",
184
  },
185
);
163
);
186
164
187
=head2 booksellerid
165
=head2 basketgroupid
188
166
189
Type: belongs_to
167
Type: belongs_to
190
168
191
Related object: L<Koha::Schema::Result::Aqbookseller>
169
Related object: L<Koha::Schema::Result::Aqbasketgroup>
192
170
193
=cut
171
=cut
194
172
195
__PACKAGE__->belongs_to(
173
__PACKAGE__->belongs_to(
196
  "booksellerid",
174
  "basketgroupid",
197
  "Koha::Schema::Result::Aqbookseller",
175
  "Koha::Schema::Result::Aqbasketgroup",
198
  { id => "booksellerid" },
176
  { id => "basketgroupid" },
199
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
177
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
200
);
178
);
201
179
202
=head2 contractnumber
180
=head2 aqorders
203
181
204
Type: belongs_to
182
Type: has_many
205
183
206
Related object: L<Koha::Schema::Result::Aqcontract>
184
Related object: L<Koha::Schema::Result::Aqorder>
207
185
208
=cut
186
=cut
209
187
210
__PACKAGE__->belongs_to(
188
__PACKAGE__->has_many(
211
  "contractnumber",
189
  "aqorders",
212
  "Koha::Schema::Result::Aqcontract",
190
  "Koha::Schema::Result::Aqorder",
213
  { contractnumber => "contractnumber" },
191
  { "foreign.basketno" => "self.basketno" },
214
  {
192
  { cascade_copy => 0, cascade_delete => 0 },
215
    is_deferrable => 1,
216
    join_type     => "LEFT",
217
    on_delete     => "CASCADE",
218
    on_update     => "CASCADE",
219
  },
220
);
193
);
221
194
222
195
223
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
196
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
224
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b4UNvDyA6jbgcTsaasbKYA
197
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dTPNL+bVviZPwpkP8SU/dA
225
198
226
199
227
# You can replace this text with custom content, and it will be preserved on regeneration
200
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbasketgroup.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqbasketgroup;
1
package Koha::Schema::Result::Aqbasketgroup;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqbasketgroup
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqbasketgroups>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqbasketgroup
19
15
20
=cut
16
=cut
21
17
Lines 89-105 __PACKAGE__->add_columns( Link Here
89
  "billingplace",
85
  "billingplace",
90
  { data_type => "varchar", is_nullable => 1, size => 10 },
86
  { data_type => "varchar", is_nullable => 1, size => 10 },
91
);
87
);
92
93
=head1 PRIMARY KEY
94
95
=over 4
96
97
=item * L</id>
98
99
=back
100
101
=cut
102
103
__PACKAGE__->set_primary_key("id");
88
__PACKAGE__->set_primary_key("id");
104
89
105
=head1 RELATIONS
90
=head1 RELATIONS
Lines 131-142 __PACKAGE__->belongs_to( Link Here
131
  "booksellerid",
116
  "booksellerid",
132
  "Koha::Schema::Result::Aqbookseller",
117
  "Koha::Schema::Result::Aqbookseller",
133
  { id => "booksellerid" },
118
  { id => "booksellerid" },
134
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
119
  { on_delete => "CASCADE", on_update => "CASCADE" },
135
);
120
);
136
121
137
122
138
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
123
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
139
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tT40YZgK7gOfNG3DVFTHiA
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xsupYuylQF4u4WIOcZdUpg
140
125
141
126
142
# You can replace this text with custom content, and it will be preserved on regeneration
127
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbookseller.pm (-65 / +40 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqbookseller;
1
package Koha::Schema::Result::Aqbookseller;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqbookseller
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqbooksellers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqbookseller
19
15
20
=cut
16
=cut
21
17
Lines 276-295 __PACKAGE__->add_columns( Link Here
276
  "deliverytime",
272
  "deliverytime",
277
  { data_type => "integer", is_nullable => 1 },
273
  { data_type => "integer", is_nullable => 1 },
278
);
274
);
275
__PACKAGE__->set_primary_key("id");
279
276
280
=head1 PRIMARY KEY
277
=head1 RELATIONS
281
278
282
=over 4
279
=head2 aqbaskets
283
280
284
=item * L</id>
281
Type: has_many
285
282
286
=back
283
Related object: L<Koha::Schema::Result::Aqbasket>
287
284
288
=cut
285
=cut
289
286
290
__PACKAGE__->set_primary_key("id");
287
__PACKAGE__->has_many(
291
288
  "aqbaskets",
292
=head1 RELATIONS
289
  "Koha::Schema::Result::Aqbasket",
290
  { "foreign.booksellerid" => "self.id" },
291
  { cascade_copy => 0, cascade_delete => 0 },
292
);
293
293
294
=head2 aqbasketgroups
294
=head2 aqbasketgroups
295
295
Lines 306-324 __PACKAGE__->has_many( Link Here
306
  { cascade_copy => 0, cascade_delete => 0 },
306
  { cascade_copy => 0, cascade_delete => 0 },
307
);
307
);
308
308
309
=head2 aqbaskets
309
=head2 listprice
310
310
311
Type: has_many
311
Type: belongs_to
312
312
313
Related object: L<Koha::Schema::Result::Aqbasket>
313
Related object: L<Koha::Schema::Result::Currency>
314
314
315
=cut
315
=cut
316
316
317
__PACKAGE__->has_many(
317
__PACKAGE__->belongs_to(
318
  "aqbaskets",
318
  "listprice",
319
  "Koha::Schema::Result::Aqbasket",
319
  "Koha::Schema::Result::Currency",
320
  { "foreign.booksellerid" => "self.id" },
320
  { currency => "listprice" },
321
  { cascade_copy => 0, cascade_delete => 0 },
321
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
322
);
323
324
=head2 invoiceprice
325
326
Type: belongs_to
327
328
Related object: L<Koha::Schema::Result::Currency>
329
330
=cut
331
332
__PACKAGE__->belongs_to(
333
  "invoiceprice",
334
  "Koha::Schema::Result::Currency",
335
  { currency => "invoiceprice" },
336
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
322
);
337
);
323
338
324
=head2 aqcontracts
339
=head2 aqcontracts
Lines 351-399 __PACKAGE__->has_many( Link Here
351
  { cascade_copy => 0, cascade_delete => 0 },
366
  { cascade_copy => 0, cascade_delete => 0 },
352
);
367
);
353
368
354
=head2 invoiceprice
355
356
Type: belongs_to
357
358
Related object: L<Koha::Schema::Result::Currency>
359
360
=cut
361
362
__PACKAGE__->belongs_to(
363
  "invoiceprice",
364
  "Koha::Schema::Result::Currency",
365
  { currency => "invoiceprice" },
366
  {
367
    is_deferrable => 1,
368
    join_type     => "LEFT",
369
    on_delete     => "CASCADE",
370
    on_update     => "CASCADE",
371
  },
372
);
373
374
=head2 listprice
375
376
Type: belongs_to
377
378
Related object: L<Koha::Schema::Result::Currency>
379
380
=cut
381
382
__PACKAGE__->belongs_to(
383
  "listprice",
384
  "Koha::Schema::Result::Currency",
385
  { currency => "listprice" },
386
  {
387
    is_deferrable => 1,
388
    join_type     => "LEFT",
389
    on_delete     => "CASCADE",
390
    on_update     => "CASCADE",
391
  },
392
);
393
394
369
395
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
370
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
396
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pqq5chHLUwm5Ss5CCQBL2g
371
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bPdr4ywlswa+djhpSQdT+A
397
372
398
373
399
# You can replace this text with custom content, and it will be preserved on regeneration
374
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbudget.pm (-35 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqbudget;
1
package Koha::Schema::Result::Aqbudget;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqbudget
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqbudgets>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqbudget
19
15
20
=cut
16
=cut
21
17
Lines 81-87 __PACKAGE__->table("aqbudgets"); Link Here
81
=head2 timestamp
77
=head2 timestamp
82
78
83
  data_type: 'timestamp'
79
  data_type: 'timestamp'
84
  datetime_undef_if_invalid: 1
85
  default_value: current_timestamp
80
  default_value: current_timestamp
86
  is_nullable: 0
81
  is_nullable: 0
87
82
Lines 151-160 __PACKAGE__->add_columns( Link Here
151
  { data_type => "mediumtext", is_nullable => 1 },
146
  { data_type => "mediumtext", is_nullable => 1 },
152
  "timestamp",
147
  "timestamp",
153
  {
148
  {
154
    data_type => "timestamp",
149
    data_type     => "timestamp",
155
    datetime_undef_if_invalid => 1,
156
    default_value => \"current_timestamp",
150
    default_value => \"current_timestamp",
157
    is_nullable => 0,
151
    is_nullable   => 0,
158
  },
152
  },
159
  "budget_period_id",
153
  "budget_period_id",
160
  { data_type => "integer", is_nullable => 1 },
154
  { data_type => "integer", is_nullable => 1 },
Lines 167-183 __PACKAGE__->add_columns( Link Here
167
  "budget_permission",
161
  "budget_permission",
168
  { data_type => "integer", default_value => 0, is_nullable => 1 },
162
  { data_type => "integer", default_value => 0, is_nullable => 1 },
169
);
163
);
170
171
=head1 PRIMARY KEY
172
173
=over 4
174
175
=item * L</budget_id>
176
177
=back
178
179
=cut
180
181
__PACKAGE__->set_primary_key("budget_id");
164
__PACKAGE__->set_primary_key("budget_id");
182
165
183
=head1 RELATIONS
166
=head1 RELATIONS
Lines 227-245 __PACKAGE__->has_many( Link Here
227
  { cascade_copy => 0, cascade_delete => 0 },
210
  { cascade_copy => 0, cascade_delete => 0 },
228
);
211
);
229
212
230
=head2 borrowernumbers
231
232
Type: many_to_many
233
234
Composing rels: L</aqbudgetborrowers> -> borrowernumber
235
236
=cut
237
238
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
239
240
213
241
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
214
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
242
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dxOTKpdIJ6ruJUE++4fC8w
215
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+IqWvsBTWC/ft7EUrB9RwQ
243
216
244
217
245
# You can replace this text with custom content, and it will be preserved on regeneration
218
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbudgetborrower.pm (-35 / +18 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqbudgetborrower;
1
package Koha::Schema::Result::Aqbudgetborrower;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqbudgetborrower
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqbudgetborrowers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqbudgetborrower
19
15
20
=cut
16
=cut
21
17
Lines 43-98 __PACKAGE__->add_columns( Link Here
43
  "borrowernumber",
39
  "borrowernumber",
44
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
45
);
41
);
46
47
=head1 PRIMARY KEY
48
49
=over 4
50
51
=item * L</budget_id>
52
53
=item * L</borrowernumber>
54
55
=back
56
57
=cut
58
59
__PACKAGE__->set_primary_key("budget_id", "borrowernumber");
42
__PACKAGE__->set_primary_key("budget_id", "borrowernumber");
60
43
61
=head1 RELATIONS
44
=head1 RELATIONS
62
45
63
=head2 borrowernumber
46
=head2 budget
64
47
65
Type: belongs_to
48
Type: belongs_to
66
49
67
Related object: L<Koha::Schema::Result::Borrower>
50
Related object: L<Koha::Schema::Result::Aqbudget>
68
51
69
=cut
52
=cut
70
53
71
__PACKAGE__->belongs_to(
54
__PACKAGE__->belongs_to(
72
  "borrowernumber",
55
  "budget",
73
  "Koha::Schema::Result::Borrower",
56
  "Koha::Schema::Result::Aqbudget",
74
  { borrowernumber => "borrowernumber" },
57
  { budget_id => "budget_id" },
75
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
58
  { on_delete => "CASCADE", on_update => "CASCADE" },
76
);
59
);
77
60
78
=head2 budget
61
=head2 borrowernumber
79
62
80
Type: belongs_to
63
Type: belongs_to
81
64
82
Related object: L<Koha::Schema::Result::Aqbudget>
65
Related object: L<Koha::Schema::Result::Borrower>
83
66
84
=cut
67
=cut
85
68
86
__PACKAGE__->belongs_to(
69
__PACKAGE__->belongs_to(
87
  "budget",
70
  "borrowernumber",
88
  "Koha::Schema::Result::Aqbudget",
71
  "Koha::Schema::Result::Borrower",
89
  { budget_id => "budget_id" },
72
  { borrowernumber => "borrowernumber" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
91
);
74
);
92
75
93
76
94
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3PWUS/0L1ERMWWkghUO7ng
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CIMzl8MPmGHRkD/qGMgo1A
96
79
97
80
98
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbudgetperiod.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqbudgetperiod;
1
package Koha::Schema::Result::Aqbudgetperiod;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqbudgetperiod
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqbudgetperiods>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqbudgetperiod
19
15
20
=cut
16
=cut
21
17
Lines 32-44 __PACKAGE__->table("aqbudgetperiods"); Link Here
32
=head2 budget_period_startdate
28
=head2 budget_period_startdate
33
29
34
  data_type: 'date'
30
  data_type: 'date'
35
  datetime_undef_if_invalid: 1
36
  is_nullable: 0
31
  is_nullable: 0
37
32
38
=head2 budget_period_enddate
33
=head2 budget_period_enddate
39
34
40
  data_type: 'date'
35
  data_type: 'date'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 0
36
  is_nullable: 0
43
37
44
=head2 budget_period_active
38
=head2 budget_period_active
Lines 81-89 __PACKAGE__->add_columns( Link Here
81
  "budget_period_id",
75
  "budget_period_id",
82
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
76
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
83
  "budget_period_startdate",
77
  "budget_period_startdate",
84
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
78
  { data_type => "date", is_nullable => 0 },
85
  "budget_period_enddate",
79
  "budget_period_enddate",
86
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
80
  { data_type => "date", is_nullable => 0 },
87
  "budget_period_active",
81
  "budget_period_active",
88
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
82
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
89
  "budget_period_description",
83
  "budget_period_description",
Lines 97-118 __PACKAGE__->add_columns( Link Here
97
  "sort2_authcat",
91
  "sort2_authcat",
98
  { data_type => "varchar", is_nullable => 1, size => 10 },
92
  { data_type => "varchar", is_nullable => 1, size => 10 },
99
);
93
);
100
101
=head1 PRIMARY KEY
102
103
=over 4
104
105
=item * L</budget_period_id>
106
107
=back
108
109
=cut
110
111
__PACKAGE__->set_primary_key("budget_period_id");
94
__PACKAGE__->set_primary_key("budget_period_id");
112
95
113
96
114
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
97
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
115
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SaTTCao0N80iDL8pgf5k1A
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PjXWlLG2g3GjrbtMiu+vWg
116
99
117
100
118
# You can replace this text with custom content, and it will be preserved on regeneration
101
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AqbudgetsPlanning.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AqbudgetsPlanning;
1
package Koha::Schema::Result::AqbudgetsPlanning;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AqbudgetsPlanning
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqbudgets_planning>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AqbudgetsPlanning
19
15
20
=cut
16
=cut
21
17
Lines 82-98 __PACKAGE__->add_columns( Link Here
82
  "display",
78
  "display",
83
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
79
  { data_type => "tinyint", default_value => 1, is_nullable => 1 },
84
);
80
);
85
86
=head1 PRIMARY KEY
87
88
=over 4
89
90
=item * L</plan_id>
91
92
=back
93
94
=cut
95
96
__PACKAGE__->set_primary_key("plan_id");
81
__PACKAGE__->set_primary_key("plan_id");
97
82
98
=head1 RELATIONS
83
=head1 RELATIONS
Lines 109-120 __PACKAGE__->belongs_to( Link Here
109
  "budget",
94
  "budget",
110
  "Koha::Schema::Result::Aqbudget",
95
  "Koha::Schema::Result::Aqbudget",
111
  { budget_id => "budget_id" },
96
  { budget_id => "budget_id" },
112
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97
  { on_delete => "CASCADE", on_update => "CASCADE" },
113
);
98
);
114
99
115
100
116
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
101
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7nhWIqgezc+W8sHqJkXCbQ
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dsgDxVLfQyCVrSVst/i7gQ
118
103
119
104
120
# 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/Aqcontract.pm (-26 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqcontract;
1
package Koha::Schema::Result::Aqcontract;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqcontract
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqcontract>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqcontract
19
15
20
=cut
16
=cut
21
17
Lines 32-44 __PACKAGE__->table("aqcontract"); Link Here
32
=head2 contractstartdate
28
=head2 contractstartdate
33
29
34
  data_type: 'date'
30
  data_type: 'date'
35
  datetime_undef_if_invalid: 1
36
  is_nullable: 1
31
  is_nullable: 1
37
32
38
=head2 contractenddate
33
=head2 contractenddate
39
34
40
  data_type: 'date'
35
  data_type: 'date'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
36
  is_nullable: 1
43
37
44
=head2 contractname
38
=head2 contractname
Lines 64-72 __PACKAGE__->add_columns( Link Here
64
  "contractnumber",
58
  "contractnumber",
65
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66
  "contractstartdate",
60
  "contractstartdate",
67
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
61
  { data_type => "date", is_nullable => 1 },
68
  "contractenddate",
62
  "contractenddate",
69
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
63
  { data_type => "date", is_nullable => 1 },
70
  "contractname",
64
  "contractname",
71
  { data_type => "varchar", is_nullable => 1, size => 50 },
65
  { data_type => "varchar", is_nullable => 1, size => 50 },
72
  "contractdescription",
66
  "contractdescription",
Lines 74-90 __PACKAGE__->add_columns( Link Here
74
  "booksellerid",
68
  "booksellerid",
75
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
69
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
76
);
70
);
77
78
=head1 PRIMARY KEY
79
80
=over 4
81
82
=item * L</contractnumber>
83
84
=back
85
86
=cut
87
88
__PACKAGE__->set_primary_key("contractnumber");
71
__PACKAGE__->set_primary_key("contractnumber");
89
72
90
=head1 RELATIONS
73
=head1 RELATIONS
Lines 116-127 __PACKAGE__->belongs_to( Link Here
116
  "booksellerid",
99
  "booksellerid",
117
  "Koha::Schema::Result::Aqbookseller",
100
  "Koha::Schema::Result::Aqbookseller",
118
  { id => "booksellerid" },
101
  { id => "booksellerid" },
119
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
102
  { on_delete => "CASCADE", on_update => "CASCADE" },
120
);
103
);
121
104
122
105
123
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
106
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PF3RUnj5urQYDFzxsVxOcw
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UKJ77lJhJx/XTbsYTxziSA
125
108
126
109
127
# You can replace this text with custom content, and it will be preserved on regeneration
110
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqinvoice.pm (-49 / +26 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqinvoice;
1
package Koha::Schema::Result::Aqinvoice;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqinvoice
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqinvoices>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqinvoice
19
15
20
=cut
16
=cut
21
17
Lines 43-61 __PACKAGE__->table("aqinvoices"); Link Here
43
=head2 shipmentdate
39
=head2 shipmentdate
44
40
45
  data_type: 'date'
41
  data_type: 'date'
46
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
42
  is_nullable: 1
48
43
49
=head2 billingdate
44
=head2 billingdate
50
45
51
  data_type: 'date'
46
  data_type: 'date'
52
  datetime_undef_if_invalid: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
=head2 closedate
49
=head2 closedate
56
50
57
  data_type: 'date'
51
  data_type: 'date'
58
  datetime_undef_if_invalid: 1
59
  is_nullable: 1
52
  is_nullable: 1
60
53
61
=head2 shipmentcost
54
=head2 shipmentcost
Lines 80-125 __PACKAGE__->add_columns( Link Here
80
  "booksellerid",
73
  "booksellerid",
81
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
74
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
82
  "shipmentdate",
75
  "shipmentdate",
83
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
76
  { data_type => "date", is_nullable => 1 },
84
  "billingdate",
77
  "billingdate",
85
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
78
  { data_type => "date", is_nullable => 1 },
86
  "closedate",
79
  "closedate",
87
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
80
  { data_type => "date", is_nullable => 1 },
88
  "shipmentcost",
81
  "shipmentcost",
89
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
82
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
90
  "shipmentcost_budgetid",
83
  "shipmentcost_budgetid",
91
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
84
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
92
);
85
);
93
94
=head1 PRIMARY KEY
95
96
=over 4
97
98
=item * L</invoiceid>
99
100
=back
101
102
=cut
103
104
__PACKAGE__->set_primary_key("invoiceid");
86
__PACKAGE__->set_primary_key("invoiceid");
105
87
106
=head1 RELATIONS
88
=head1 RELATIONS
107
89
108
=head2 aqorders
109
110
Type: has_many
111
112
Related object: L<Koha::Schema::Result::Aqorder>
113
114
=cut
115
116
__PACKAGE__->has_many(
117
  "aqorders",
118
  "Koha::Schema::Result::Aqorder",
119
  { "foreign.invoiceid" => "self.invoiceid" },
120
  { cascade_copy => 0, cascade_delete => 0 },
121
);
122
123
=head2 booksellerid
90
=head2 booksellerid
124
91
125
Type: belongs_to
92
Type: belongs_to
Lines 132-138 __PACKAGE__->belongs_to( Link Here
132
  "booksellerid",
99
  "booksellerid",
133
  "Koha::Schema::Result::Aqbookseller",
100
  "Koha::Schema::Result::Aqbookseller",
134
  { id => "booksellerid" },
101
  { id => "booksellerid" },
135
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
102
  { on_delete => "CASCADE", on_update => "CASCADE" },
136
);
103
);
137
104
138
=head2 shipmentcost_budgetid
105
=head2 shipmentcost_budgetid
Lines 147-163 __PACKAGE__->belongs_to( Link Here
147
  "shipmentcost_budgetid",
114
  "shipmentcost_budgetid",
148
  "Koha::Schema::Result::Aqbudget",
115
  "Koha::Schema::Result::Aqbudget",
149
  { budget_id => "shipmentcost_budgetid" },
116
  { budget_id => "shipmentcost_budgetid" },
150
  {
117
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
151
    is_deferrable => 1,
118
);
152
    join_type     => "LEFT",
119
153
    on_delete     => "CASCADE",
120
=head2 aqorders
154
    on_update     => "CASCADE",
121
155
  },
122
Type: has_many
123
124
Related object: L<Koha::Schema::Result::Aqorder>
125
126
=cut
127
128
__PACKAGE__->has_many(
129
  "aqorders",
130
  "Koha::Schema::Result::Aqorder",
131
  { "foreign.invoiceid" => "self.invoiceid" },
132
  { cascade_copy => 0, cascade_delete => 0 },
156
);
133
);
157
134
158
135
159
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
136
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
160
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nV0lYm2w4xX8cwVmTVF3YQ
137
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:34iAasZQ+xtOZz/As0QXPA
161
138
162
139
163
# 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/Aqorder.pm (-118 / +62 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqorder;
1
package Koha::Schema::Result::Aqorder;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqorder
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqorders>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqorder
19
15
20
=cut
16
=cut
21
17
Lines 38-44 __PACKAGE__->table("aqorders"); Link Here
38
=head2 entrydate
34
=head2 entrydate
39
35
40
  data_type: 'date'
36
  data_type: 'date'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
37
  is_nullable: 1
43
38
44
=head2 quantity
39
=head2 quantity
Lines 67-73 __PACKAGE__->table("aqorders"); Link Here
67
=head2 datereceived
62
=head2 datereceived
68
63
69
  data_type: 'date'
64
  data_type: 'date'
70
  datetime_undef_if_invalid: 1
71
  is_nullable: 1
65
  is_nullable: 1
72
66
73
=head2 invoiceid
67
=head2 invoiceid
Lines 103-109 __PACKAGE__->table("aqorders"); Link Here
103
=head2 datecancellationprinted
97
=head2 datecancellationprinted
104
98
105
  data_type: 'date'
99
  data_type: 'date'
106
  datetime_undef_if_invalid: 1
107
  is_nullable: 1
100
  is_nullable: 1
108
101
109
=head2 notes
102
=head2 notes
Lines 130-136 __PACKAGE__->table("aqorders"); Link Here
130
=head2 timestamp
123
=head2 timestamp
131
124
132
  data_type: 'timestamp'
125
  data_type: 'timestamp'
133
  datetime_undef_if_invalid: 1
134
  default_value: current_timestamp
126
  default_value: current_timestamp
135
  is_nullable: 0
127
  is_nullable: 0
136
128
Lines 171-177 __PACKAGE__->table("aqorders"); Link Here
171
=head2 budgetdate
163
=head2 budgetdate
172
164
173
  data_type: 'date'
165
  data_type: 'date'
174
  datetime_undef_if_invalid: 1
175
  is_nullable: 1
166
  is_nullable: 1
176
167
177
=head2 sort1
168
=head2 sort1
Lines 212-218 __PACKAGE__->table("aqorders"); Link Here
212
=head2 claimed_date
203
=head2 claimed_date
213
204
214
  data_type: 'date'
205
  data_type: 'date'
215
  datetime_undef_if_invalid: 1
216
  is_nullable: 1
206
  is_nullable: 1
217
207
218
=head2 subscriptionid
208
=head2 subscriptionid
Lines 226-238 __PACKAGE__->table("aqorders"); Link Here
226
  data_type: 'integer'
216
  data_type: 'integer'
227
  is_nullable: 1
217
  is_nullable: 1
228
218
229
=head2 orderstatus
230
231
  data_type: 'varchar'
232
  default_value: 'new'
233
  is_nullable: 1
234
  size: 16
235
236
=cut
219
=cut
237
220
238
__PACKAGE__->add_columns(
221
__PACKAGE__->add_columns(
Lines 241-247 __PACKAGE__->add_columns( Link Here
241
  "biblionumber",
224
  "biblionumber",
242
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
225
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
243
  "entrydate",
226
  "entrydate",
244
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
227
  { data_type => "date", is_nullable => 1 },
245
  "quantity",
228
  "quantity",
246
  { data_type => "smallint", is_nullable => 1 },
229
  { data_type => "smallint", is_nullable => 1 },
247
  "currency",
230
  "currency",
Lines 251-257 __PACKAGE__->add_columns( Link Here
251
  "totalamount",
234
  "totalamount",
252
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
235
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
253
  "datereceived",
236
  "datereceived",
254
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
237
  { data_type => "date", is_nullable => 1 },
255
  "invoiceid",
238
  "invoiceid",
256
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
239
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
257
  "freight",
240
  "freight",
Lines 263-269 __PACKAGE__->add_columns( Link Here
263
  "cancelledby",
246
  "cancelledby",
264
  { data_type => "varchar", is_nullable => 1, size => 10 },
247
  { data_type => "varchar", is_nullable => 1, size => 10 },
265
  "datecancellationprinted",
248
  "datecancellationprinted",
266
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
249
  { data_type => "date", is_nullable => 1 },
267
  "notes",
250
  "notes",
268
  { data_type => "mediumtext", is_nullable => 1 },
251
  { data_type => "mediumtext", is_nullable => 1 },
269
  "supplierreference",
252
  "supplierreference",
Lines 274-283 __PACKAGE__->add_columns( Link Here
274
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
257
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
275
  "timestamp",
258
  "timestamp",
276
  {
259
  {
277
    data_type => "timestamp",
260
    data_type     => "timestamp",
278
    datetime_undef_if_invalid => 1,
279
    default_value => \"current_timestamp",
261
    default_value => \"current_timestamp",
280
    is_nullable => 0,
262
    is_nullable   => 0,
281
  },
263
  },
282
  "rrp",
264
  "rrp",
283
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
265
  { data_type => "decimal", is_nullable => 1, size => [13, 2] },
Lines 292-298 __PACKAGE__->add_columns( Link Here
292
  "budgetgroup_id",
274
  "budgetgroup_id",
293
  { data_type => "integer", is_nullable => 0 },
275
  { data_type => "integer", is_nullable => 0 },
294
  "budgetdate",
276
  "budgetdate",
295
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
277
  { data_type => "date", is_nullable => 1 },
296
  "sort1",
278
  "sort1",
297
  { data_type => "varchar", is_nullable => 1, size => 80 },
279
  { data_type => "varchar", is_nullable => 1, size => 80 },
298
  "sort2",
280
  "sort2",
Lines 306-384 __PACKAGE__->add_columns( Link Here
306
  "claims_count",
288
  "claims_count",
307
  { data_type => "integer", default_value => 0, is_nullable => 1 },
289
  { data_type => "integer", default_value => 0, is_nullable => 1 },
308
  "claimed_date",
290
  "claimed_date",
309
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
291
  { data_type => "date", is_nullable => 1 },
310
  "subscriptionid",
292
  "subscriptionid",
311
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
293
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
312
  "parent_ordernumber",
294
  "parent_ordernumber",
313
  { data_type => "integer", is_nullable => 1 },
295
  { data_type => "integer", is_nullable => 1 },
314
  "orderstatus",
315
  {
316
    data_type => "varchar",
317
    default_value => "new",
318
    is_nullable => 1,
319
    size => 16,
320
  },
321
);
296
);
322
323
=head1 PRIMARY KEY
324
325
=over 4
326
327
=item * L</ordernumber>
328
329
=back
330
331
=cut
332
333
__PACKAGE__->set_primary_key("ordernumber");
297
__PACKAGE__->set_primary_key("ordernumber");
334
298
335
=head1 RELATIONS
299
=head1 RELATIONS
336
300
337
=head2 aqorders_items
338
339
Type: has_many
340
341
Related object: L<Koha::Schema::Result::AqordersItem>
342
343
=cut
344
345
__PACKAGE__->has_many(
346
  "aqorders_items",
347
  "Koha::Schema::Result::AqordersItem",
348
  { "foreign.ordernumber" => "self.ordernumber" },
349
  { cascade_copy => 0, cascade_delete => 0 },
350
);
351
352
=head2 aqorders_transfers_ordernumber_from
353
354
Type: might_have
355
356
Related object: L<Koha::Schema::Result::AqordersTransfer>
357
358
=cut
359
360
__PACKAGE__->might_have(
361
  "aqorders_transfers_ordernumber_from",
362
  "Koha::Schema::Result::AqordersTransfer",
363
  { "foreign.ordernumber_from" => "self.ordernumber" },
364
  { cascade_copy => 0, cascade_delete => 0 },
365
);
366
367
=head2 aqorders_transfers_ordernumber_to
368
369
Type: might_have
370
371
Related object: L<Koha::Schema::Result::AqordersTransfer>
372
373
=cut
374
375
__PACKAGE__->might_have(
376
  "aqorders_transfers_ordernumber_to",
377
  "Koha::Schema::Result::AqordersTransfer",
378
  { "foreign.ordernumber_to" => "self.ordernumber" },
379
  { cascade_copy => 0, cascade_delete => 0 },
380
);
381
382
=head2 basketno
301
=head2 basketno
383
302
384
Type: belongs_to
303
Type: belongs_to
Lines 391-402 __PACKAGE__->belongs_to( Link Here
391
  "basketno",
310
  "basketno",
392
  "Koha::Schema::Result::Aqbasket",
311
  "Koha::Schema::Result::Aqbasket",
393
  { basketno => "basketno" },
312
  { basketno => "basketno" },
394
  {
313
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
395
    is_deferrable => 1,
396
    join_type     => "LEFT",
397
    on_delete     => "CASCADE",
398
    on_update     => "CASCADE",
399
  },
400
);
314
);
401
315
402
=head2 biblionumber
316
=head2 biblionumber
Lines 411-422 __PACKAGE__->belongs_to( Link Here
411
  "biblionumber",
325
  "biblionumber",
412
  "Koha::Schema::Result::Biblio",
326
  "Koha::Schema::Result::Biblio",
413
  { biblionumber => "biblionumber" },
327
  { biblionumber => "biblionumber" },
414
  {
328
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
415
    is_deferrable => 1,
416
    join_type     => "LEFT",
417
    on_delete     => "CASCADE",
418
    on_update     => "CASCADE",
419
  },
420
);
329
);
421
330
422
=head2 invoiceid
331
=head2 invoiceid
Lines 431-442 __PACKAGE__->belongs_to( Link Here
431
  "invoiceid",
340
  "invoiceid",
432
  "Koha::Schema::Result::Aqinvoice",
341
  "Koha::Schema::Result::Aqinvoice",
433
  { invoiceid => "invoiceid" },
342
  { invoiceid => "invoiceid" },
434
  {
343
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
435
    is_deferrable => 1,
436
    join_type     => "LEFT",
437
    on_delete     => "CASCADE",
438
    on_update     => "CASCADE",
439
  },
440
);
344
);
441
345
442
=head2 subscriptionid
346
=head2 subscriptionid
Lines 451-467 __PACKAGE__->belongs_to( Link Here
451
  "subscriptionid",
355
  "subscriptionid",
452
  "Koha::Schema::Result::Subscription",
356
  "Koha::Schema::Result::Subscription",
453
  { subscriptionid => "subscriptionid" },
357
  { subscriptionid => "subscriptionid" },
454
  {
358
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
455
    is_deferrable => 1,
359
);
456
    join_type     => "LEFT",
360
457
    on_delete     => "CASCADE",
361
=head2 aqorders_items
458
    on_update     => "CASCADE",
362
459
  },
363
Type: has_many
364
365
Related object: L<Koha::Schema::Result::AqordersItem>
366
367
=cut
368
369
__PACKAGE__->has_many(
370
  "aqorders_items",
371
  "Koha::Schema::Result::AqordersItem",
372
  { "foreign.ordernumber" => "self.ordernumber" },
373
  { cascade_copy => 0, cascade_delete => 0 },
374
);
375
376
=head2 aqorders_transfers_ordernumber_from
377
378
Type: might_have
379
380
Related object: L<Koha::Schema::Result::AqordersTransfer>
381
382
=cut
383
384
__PACKAGE__->might_have(
385
  "aqorders_transfers_ordernumber_from",
386
  "Koha::Schema::Result::AqordersTransfer",
387
  { "foreign.ordernumber_from" => "self.ordernumber" },
388
  { cascade_copy => 0, cascade_delete => 0 },
389
);
390
391
=head2 aqorders_transfers_ordernumber_to
392
393
Type: might_have
394
395
Related object: L<Koha::Schema::Result::AqordersTransfer>
396
397
=cut
398
399
__PACKAGE__->might_have(
400
  "aqorders_transfers_ordernumber_to",
401
  "Koha::Schema::Result::AqordersTransfer",
402
  { "foreign.ordernumber_to" => "self.ordernumber" },
403
  { cascade_copy => 0, cascade_delete => 0 },
460
);
404
);
461
405
462
406
463
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-22 13:37:51
407
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
464
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+bznx/vy8sLxOYDBZkwycw
408
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rsqrX9MgWYSQ2pb+TGZxzg
465
409
466
410
467
# You can replace this text with custom content, and it will be preserved on regeneration
411
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqorderdelivery.pm (-12 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Aqorderdelivery;
1
package Koha::Schema::Result::Aqorderdelivery;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Aqorderdelivery
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqorderdelivery>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Aqorderdelivery
19
15
20
=cut
16
=cut
21
17
Lines 26-32 __PACKAGE__->table("aqorderdelivery"); Link Here
26
=head2 ordernumber
22
=head2 ordernumber
27
23
28
  data_type: 'date'
24
  data_type: 'date'
29
  datetime_undef_if_invalid: 1
30
  is_nullable: 1
25
  is_nullable: 1
31
26
32
=head2 deliverynumber
27
=head2 deliverynumber
Lines 55-61 __PACKAGE__->table("aqorderdelivery"); Link Here
55
50
56
__PACKAGE__->add_columns(
51
__PACKAGE__->add_columns(
57
  "ordernumber",
52
  "ordernumber",
58
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
53
  { data_type => "date", is_nullable => 1 },
59
  "deliverynumber",
54
  "deliverynumber",
60
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
55
  { data_type => "smallint", default_value => 0, is_nullable => 0 },
61
  "deliverydate",
56
  "deliverydate",
Lines 67-74 __PACKAGE__->add_columns( Link Here
67
);
62
);
68
63
69
64
70
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
65
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hS/Ww/p7nHWiHNumkBifiQ
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r39DPkLPMWM4R/bjeM7TRA
72
67
73
68
74
# You can replace this text with custom content, and it will be preserved on regeneration
69
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AqordersItem.pm (-26 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AqordersItem;
1
package Koha::Schema::Result::AqordersItem;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AqordersItem
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqorders_items>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AqordersItem
19
15
20
=cut
16
=cut
21
17
Lines 37-43 __PACKAGE__->table("aqorders_items"); Link Here
37
=head2 timestamp
33
=head2 timestamp
38
34
39
  data_type: 'timestamp'
35
  data_type: 'timestamp'
40
  datetime_undef_if_invalid: 1
41
  default_value: current_timestamp
36
  default_value: current_timestamp
42
  is_nullable: 0
37
  is_nullable: 0
43
38
Lines 50-72 __PACKAGE__->add_columns( Link Here
50
  { data_type => "integer", is_nullable => 0 },
45
  { data_type => "integer", is_nullable => 0 },
51
  "timestamp",
46
  "timestamp",
52
  {
47
  {
53
    data_type => "timestamp",
48
    data_type     => "timestamp",
54
    datetime_undef_if_invalid => 1,
55
    default_value => \"current_timestamp",
49
    default_value => \"current_timestamp",
56
    is_nullable => 0,
50
    is_nullable   => 0,
57
  },
51
  },
58
);
52
);
59
60
=head1 PRIMARY KEY
61
62
=over 4
63
64
=item * L</itemnumber>
65
66
=back
67
68
=cut
69
70
__PACKAGE__->set_primary_key("itemnumber");
53
__PACKAGE__->set_primary_key("itemnumber");
71
54
72
=head1 RELATIONS
55
=head1 RELATIONS
Lines 83-94 __PACKAGE__->belongs_to( Link Here
83
  "ordernumber",
66
  "ordernumber",
84
  "Koha::Schema::Result::Aqorder",
67
  "Koha::Schema::Result::Aqorder",
85
  { ordernumber => "ordernumber" },
68
  { ordernumber => "ordernumber" },
86
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
69
  { on_delete => "CASCADE", on_update => "CASCADE" },
87
);
70
);
88
71
89
72
90
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
73
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hvDuLTY3idYc1ujykNDrPQ
74
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wr1Bafbx8K9pOyS5ODNKOQ
92
75
93
76
94
# You can replace this text with custom content, and it will be preserved on regeneration
77
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AqordersTransfer.pm (-51 / +11 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AqordersTransfer;
1
package Koha::Schema::Result::AqordersTransfer;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AqordersTransfer
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<aqorders_transfers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AqordersTransfer
19
15
20
=cut
16
=cut
21
17
Lines 38-44 __PACKAGE__->table("aqorders_transfers"); Link Here
38
=head2 timestamp
34
=head2 timestamp
39
35
40
  data_type: 'timestamp'
36
  data_type: 'timestamp'
41
  datetime_undef_if_invalid: 1
42
  default_value: current_timestamp
37
  default_value: current_timestamp
43
  is_nullable: 0
38
  is_nullable: 0
44
39
Lines 51-88 __PACKAGE__->add_columns( Link Here
51
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
46
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
52
  "timestamp",
47
  "timestamp",
53
  {
48
  {
54
    data_type => "timestamp",
49
    data_type     => "timestamp",
55
    datetime_undef_if_invalid => 1,
56
    default_value => \"current_timestamp",
50
    default_value => \"current_timestamp",
57
    is_nullable => 0,
51
    is_nullable   => 0,
58
  },
52
  },
59
);
53
);
60
61
=head1 UNIQUE CONSTRAINTS
62
63
=head2 C<ordernumber_from>
64
65
=over 4
66
67
=item * L</ordernumber_from>
68
69
=back
70
71
=cut
72
73
__PACKAGE__->add_unique_constraint("ordernumber_from", ["ordernumber_from"]);
74
75
=head2 C<ordernumber_to>
76
77
=over 4
78
79
=item * L</ordernumber_to>
80
81
=back
82
83
=cut
84
85
__PACKAGE__->add_unique_constraint("ordernumber_to", ["ordernumber_to"]);
54
__PACKAGE__->add_unique_constraint("ordernumber_to", ["ordernumber_to"]);
55
__PACKAGE__->add_unique_constraint("ordernumber_from", ["ordernumber_from"]);
86
56
87
=head1 RELATIONS
57
=head1 RELATIONS
88
58
Lines 98-109 __PACKAGE__->belongs_to( Link Here
98
  "ordernumber_from",
68
  "ordernumber_from",
99
  "Koha::Schema::Result::Aqorder",
69
  "Koha::Schema::Result::Aqorder",
100
  { ordernumber => "ordernumber_from" },
70
  { ordernumber => "ordernumber_from" },
101
  {
71
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
102
    is_deferrable => 1,
103
    join_type     => "LEFT",
104
    on_delete     => "CASCADE",
105
    on_update     => "CASCADE",
106
  },
107
);
72
);
108
73
109
=head2 ordernumber_to
74
=head2 ordernumber_to
Lines 118-134 __PACKAGE__->belongs_to( Link Here
118
  "ordernumber_to",
83
  "ordernumber_to",
119
  "Koha::Schema::Result::Aqorder",
84
  "Koha::Schema::Result::Aqorder",
120
  { ordernumber => "ordernumber_to" },
85
  { ordernumber => "ordernumber_to" },
121
  {
86
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
122
    is_deferrable => 1,
123
    join_type     => "LEFT",
124
    on_delete     => "CASCADE",
125
    on_update     => "CASCADE",
126
  },
127
);
87
);
128
88
129
89
130
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
90
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1WX3cQyoYmNmPed+OqdUNA
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b8m5L9iatmwdHnKsY+c7cw
132
92
133
93
134
# You can replace this text with custom code or comments, and it will be preserved on regeneration
94
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthHeader.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AuthHeader;
1
package Koha::Schema::Result::AuthHeader;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AuthHeader
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<auth_header>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AuthHeader
19
15
20
=cut
16
=cut
21
17
Lines 40-52 __PACKAGE__->table("auth_header"); Link Here
40
=head2 datecreated
36
=head2 datecreated
41
37
42
  data_type: 'date'
38
  data_type: 'date'
43
  datetime_undef_if_invalid: 1
44
  is_nullable: 1
39
  is_nullable: 1
45
40
46
=head2 datemodified
41
=head2 datemodified
47
42
48
  data_type: 'date'
43
  data_type: 'date'
49
  datetime_undef_if_invalid: 1
50
  is_nullable: 1
44
  is_nullable: 1
51
45
52
=head2 origincode
46
=head2 origincode
Lines 88-96 __PACKAGE__->add_columns( Link Here
88
  "authtypecode",
82
  "authtypecode",
89
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
83
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
90
  "datecreated",
84
  "datecreated",
91
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
85
  { data_type => "date", is_nullable => 1 },
92
  "datemodified",
86
  "datemodified",
93
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
87
  { data_type => "date", is_nullable => 1 },
94
  "origincode",
88
  "origincode",
95
  { data_type => "varchar", is_nullable => 1, size => 20 },
89
  { data_type => "varchar", is_nullable => 1, size => 20 },
96
  "authtrees",
90
  "authtrees",
Lines 102-123 __PACKAGE__->add_columns( Link Here
102
  "marcxml",
96
  "marcxml",
103
  { data_type => "longtext", is_nullable => 0 },
97
  { data_type => "longtext", is_nullable => 0 },
104
);
98
);
105
106
=head1 PRIMARY KEY
107
108
=over 4
109
110
=item * L</authid>
111
112
=back
113
114
=cut
115
116
__PACKAGE__->set_primary_key("authid");
99
__PACKAGE__->set_primary_key("authid");
117
100
118
101
119
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
102
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
120
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z7KMl3JNWUJlOte5CD25Dw
103
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9XgDIYvKEpxsZWoDRrO9yg
121
104
122
105
123
# You can replace this text with custom content, and it will be preserved on regeneration
106
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthSubfieldStructure.pm (-32 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AuthSubfieldStructure;
1
package Koha::Schema::Result::AuthSubfieldStructure;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AuthSubfieldStructure
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<auth_subfield_structure>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AuthSubfieldStructure
19
15
20
=cut
16
=cut
21
17
Lines 124-134 __PACKAGE__->table("auth_subfield_structure"); Link Here
124
  is_nullable: 0
120
  is_nullable: 0
125
  size: 10
121
  size: 10
126
122
127
=head2 defaultvalue
128
129
  data_type: 'text'
130
  is_nullable: 1
131
132
=cut
123
=cut
133
124
134
__PACKAGE__->add_columns(
125
__PACKAGE__->add_columns(
Lines 164-192 __PACKAGE__->add_columns( Link Here
164
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 45 },
155
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 45 },
165
  "frameworkcode",
156
  "frameworkcode",
166
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
157
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
167
  "defaultvalue",
168
  { data_type => "text", is_nullable => 1 },
169
);
158
);
170
171
=head1 PRIMARY KEY
172
173
=over 4
174
175
=item * L</authtypecode>
176
177
=item * L</tagfield>
178
179
=item * L</tagsubfield>
180
181
=back
182
183
=cut
184
185
__PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
159
__PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
186
160
187
161
188
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
162
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
189
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:24BKrmX1lug68+rmXE1riA
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QeC+S50mKgdMrzf9nt+f7A
190
164
191
165
192
# You can replace this text with custom content, and it will be preserved on regeneration
166
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthTagStructure.pm (-24 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AuthTagStructure;
1
package Koha::Schema::Result::AuthTagStructure;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AuthTagStructure
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<auth_tag_structure>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AuthTagStructure
19
15
20
=cut
16
=cut
21
17
Lines 94-112 __PACKAGE__->add_columns( Link Here
94
  "authorised_value",
90
  "authorised_value",
95
  { data_type => "varchar", is_nullable => 1, size => 10 },
91
  { data_type => "varchar", is_nullable => 1, size => 10 },
96
);
92
);
97
98
=head1 PRIMARY KEY
99
100
=over 4
101
102
=item * L</authtypecode>
103
104
=item * L</tagfield>
105
106
=back
107
108
=cut
109
110
__PACKAGE__->set_primary_key("authtypecode", "tagfield");
93
__PACKAGE__->set_primary_key("authtypecode", "tagfield");
111
94
112
=head1 RELATIONS
95
=head1 RELATIONS
Lines 123-134 __PACKAGE__->belongs_to( Link Here
123
  "authtypecode",
106
  "authtypecode",
124
  "Koha::Schema::Result::AuthType",
107
  "Koha::Schema::Result::AuthType",
125
  { authtypecode => "authtypecode" },
108
  { authtypecode => "authtypecode" },
126
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
109
  { on_delete => "CASCADE", on_update => "CASCADE" },
127
);
110
);
128
111
129
112
130
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
113
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4ulaQnDuxrwYgCKJ/Qygaw
114
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:D+TZCdiYyiUO4kUMm1I8zg
132
115
133
116
134
# You can replace this text with custom content, and it will be preserved on regeneration
117
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthType.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AuthType;
1
package Koha::Schema::Result::AuthType;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AuthType
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<auth_types>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AuthType
19
15
20
=cut
16
=cut
21
17
Lines 61-77 __PACKAGE__->add_columns( Link Here
61
  "summary",
57
  "summary",
62
  { data_type => "mediumtext", is_nullable => 0 },
58
  { data_type => "mediumtext", is_nullable => 0 },
63
);
59
);
64
65
=head1 PRIMARY KEY
66
67
=over 4
68
69
=item * L</authtypecode>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("authtypecode");
60
__PACKAGE__->set_primary_key("authtypecode");
76
61
77
=head1 RELATIONS
62
=head1 RELATIONS
Lines 92-99 __PACKAGE__->has_many( Link Here
92
);
77
);
93
78
94
79
95
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
80
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sy0+bAJuYz5t9OVCq0Vo8Q
81
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ixqbgOOtvs839AUhRShPBg
97
82
98
83
99
# You can replace this text with custom content, and it will be preserved on regeneration
84
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthorisedValue.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AuthorisedValue;
1
package Koha::Schema::Result::AuthorisedValue;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AuthorisedValue
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<authorised_values>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AuthorisedValue
19
15
20
=cut
16
=cut
21
17
Lines 77-93 __PACKAGE__->add_columns( Link Here
77
  "imageurl",
73
  "imageurl",
78
  { data_type => "varchar", is_nullable => 1, size => 200 },
74
  { data_type => "varchar", is_nullable => 1, size => 200 },
79
);
75
);
80
81
=head1 PRIMARY KEY
82
83
=over 4
84
85
=item * L</id>
86
87
=back
88
89
=cut
90
91
__PACKAGE__->set_primary_key("id");
76
__PACKAGE__->set_primary_key("id");
92
77
93
=head1 RELATIONS
78
=head1 RELATIONS
Lines 108-115 __PACKAGE__->has_many( Link Here
108
);
93
);
109
94
110
95
111
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
96
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
112
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N6Q7Y4sHL03X170zJ3APUA
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a/pjEC6ofo+j/agJgNvXSw
113
98
114
99
115
# You can replace this text with custom content, and it will be preserved on regeneration
100
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthorisedValuesBranch.pm (-22 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::AuthorisedValuesBranch;
1
package Koha::Schema::Result::AuthorisedValuesBranch;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::AuthorisedValuesBranch
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<authorised_values_branches>
11
12
=head1 NAME
13
14
Koha::Schema::Result::AuthorisedValuesBranch
19
15
20
=cut
16
=cut
21
17
Lines 59-70 __PACKAGE__->belongs_to( Link Here
59
  "av",
55
  "av",
60
  "Koha::Schema::Result::AuthorisedValue",
56
  "Koha::Schema::Result::AuthorisedValue",
61
  { id => "av_id" },
57
  { id => "av_id" },
62
  {
58
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
63
    is_deferrable => 1,
64
    join_type     => "LEFT",
65
    on_delete     => "CASCADE",
66
    on_update     => "CASCADE",
67
  },
68
);
59
);
69
60
70
=head2 branchcode
61
=head2 branchcode
Lines 79-95 __PACKAGE__->belongs_to( Link Here
79
  "branchcode",
70
  "branchcode",
80
  "Koha::Schema::Result::Branch",
71
  "Koha::Schema::Result::Branch",
81
  { branchcode => "branchcode" },
72
  { branchcode => "branchcode" },
82
  {
73
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
83
    is_deferrable => 1,
84
    join_type     => "LEFT",
85
    on_delete     => "CASCADE",
86
    on_update     => "CASCADE",
87
  },
88
);
74
);
89
75
90
76
91
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k6hCbzMVZ1VRsubvdrZMYQ
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QWRGeUtZbnzio0EzoHPDCw
93
79
94
80
95
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Biblio.pm (-37 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Biblio;
1
package Koha::Schema::Result::Biblio;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Biblio
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<biblio>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Biblio
19
15
20
=cut
16
=cut
21
17
Lines 74-87 __PACKAGE__->table("biblio"); Link Here
74
=head2 timestamp
70
=head2 timestamp
75
71
76
  data_type: 'timestamp'
72
  data_type: 'timestamp'
77
  datetime_undef_if_invalid: 1
78
  default_value: current_timestamp
73
  default_value: current_timestamp
79
  is_nullable: 0
74
  is_nullable: 0
80
75
81
=head2 datecreated
76
=head2 datecreated
82
77
83
  data_type: 'date'
78
  data_type: 'date'
84
  datetime_undef_if_invalid: 1
85
  is_nullable: 0
79
  is_nullable: 0
86
80
87
=head2 abstract
81
=head2 abstract
Lines 112-138 __PACKAGE__->add_columns( Link Here
112
  { data_type => "smallint", is_nullable => 1 },
106
  { data_type => "smallint", is_nullable => 1 },
113
  "timestamp",
107
  "timestamp",
114
  {
108
  {
115
    data_type => "timestamp",
109
    data_type     => "timestamp",
116
    datetime_undef_if_invalid => 1,
117
    default_value => \"current_timestamp",
110
    default_value => \"current_timestamp",
118
    is_nullable => 0,
111
    is_nullable   => 0,
119
  },
112
  },
120
  "datecreated",
113
  "datecreated",
121
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
114
  { data_type => "date", is_nullable => 0 },
122
  "abstract",
115
  "abstract",
123
  { data_type => "mediumtext", is_nullable => 1 },
116
  { data_type => "mediumtext", is_nullable => 1 },
124
);
117
);
125
126
=head1 PRIMARY KEY
127
128
=over 4
129
130
=item * L</biblionumber>
131
132
=back
133
134
=cut
135
136
__PACKAGE__->set_primary_key("biblionumber");
118
__PACKAGE__->set_primary_key("biblionumber");
137
119
138
=head1 RELATIONS
120
=head1 RELATIONS
Lines 317-335 __PACKAGE__->has_many( Link Here
317
  { cascade_copy => 0, cascade_delete => 0 },
299
  { cascade_copy => 0, cascade_delete => 0 },
318
);
300
);
319
301
320
=head2 sets
321
322
Type: many_to_many
323
324
Composing rels: L</oai_sets_biblios> -> set
325
326
=cut
327
328
__PACKAGE__->many_to_many("sets", "oai_sets_biblios", "set");
329
330
302
331
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
303
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
332
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0//8OGf7OteNnwT03g4QsA
304
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SbXv9zUchfLnIcA6ik3jKg
333
305
334
306
335
# You can replace this text with custom content, and it will be preserved on regeneration
307
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BiblioFramework.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BiblioFramework;
1
package Koha::Schema::Result::BiblioFramework;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BiblioFramework
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<biblio_framework>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BiblioFramework
19
15
20
=cut
16
=cut
21
17
Lines 45-66 __PACKAGE__->add_columns( Link Here
45
  "frameworktext",
41
  "frameworktext",
46
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
42
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
47
);
43
);
48
49
=head1 PRIMARY KEY
50
51
=over 4
52
53
=item * L</frameworkcode>
54
55
=back
56
57
=cut
58
59
__PACKAGE__->set_primary_key("frameworkcode");
44
__PACKAGE__->set_primary_key("frameworkcode");
60
45
61
46
62
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
47
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
63
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KY1w7J/5cBsz9VV7QEBKPw
48
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nbCA/P3NKanJHbgld6g/kw
64
49
65
50
66
# You can replace this text with custom content, and it will be preserved on regeneration
51
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Biblioimage.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Biblioimage;
1
package Koha::Schema::Result::Biblioimage;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Biblioimage
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<biblioimages>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Biblioimage
19
15
20
=cut
16
=cut
21
17
Lines 65-81 __PACKAGE__->add_columns( Link Here
65
  "thumbnail",
61
  "thumbnail",
66
  { data_type => "mediumblob", is_nullable => 0 },
62
  { data_type => "mediumblob", is_nullable => 0 },
67
);
63
);
68
69
=head1 PRIMARY KEY
70
71
=over 4
72
73
=item * L</imagenumber>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->set_primary_key("imagenumber");
64
__PACKAGE__->set_primary_key("imagenumber");
80
65
81
=head1 RELATIONS
66
=head1 RELATIONS
Lines 92-103 __PACKAGE__->belongs_to( Link Here
92
  "biblionumber",
77
  "biblionumber",
93
  "Koha::Schema::Result::Biblio",
78
  "Koha::Schema::Result::Biblio",
94
  { biblionumber => "biblionumber" },
79
  { biblionumber => "biblionumber" },
95
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
80
  { on_delete => "CASCADE", on_update => "CASCADE" },
96
);
81
);
97
82
98
83
99
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
84
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdDuaUrR0IC6+8jJwlev6A
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6QEacXDZtNLOkvlhWvYmhg
101
86
102
87
103
# You can replace this text with custom content, and it will be preserved on regeneration
88
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Biblioitem.pm (-28 / +10 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Biblioitem;
1
package Koha::Schema::Result::Biblioitem;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Biblioitem
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<biblioitems>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Biblioitem
19
15
20
=cut
16
=cut
21
17
Lines 84-90 __PACKAGE__->table("biblioitems"); Link Here
84
=head2 volumedate
80
=head2 volumedate
85
81
86
  data_type: 'date'
82
  data_type: 'date'
87
  datetime_undef_if_invalid: 1
88
  is_nullable: 1
83
  is_nullable: 1
89
84
90
=head2 volumedesc
85
=head2 volumedesc
Lines 120-126 __PACKAGE__->table("biblioitems"); Link Here
120
=head2 timestamp
115
=head2 timestamp
121
116
122
  data_type: 'timestamp'
117
  data_type: 'timestamp'
123
  datetime_undef_if_invalid: 1
124
  default_value: current_timestamp
118
  default_value: current_timestamp
125
  is_nullable: 0
119
  is_nullable: 0
126
120
Lines 245-251 __PACKAGE__->add_columns( Link Here
245
  "publishercode",
239
  "publishercode",
246
  { data_type => "varchar", is_nullable => 1, size => 255 },
240
  { data_type => "varchar", is_nullable => 1, size => 255 },
247
  "volumedate",
241
  "volumedate",
248
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
242
  { data_type => "date", is_nullable => 1 },
249
  "volumedesc",
243
  "volumedesc",
250
  { data_type => "text", is_nullable => 1 },
244
  { data_type => "text", is_nullable => 1 },
251
  "collectiontitle",
245
  "collectiontitle",
Lines 260-269 __PACKAGE__->add_columns( Link Here
260
  { data_type => "text", is_nullable => 1 },
254
  { data_type => "text", is_nullable => 1 },
261
  "timestamp",
255
  "timestamp",
262
  {
256
  {
263
    data_type => "timestamp",
257
    data_type     => "timestamp",
264
    datetime_undef_if_invalid => 1,
265
    default_value => \"current_timestamp",
258
    default_value => \"current_timestamp",
266
    is_nullable => 0,
259
    is_nullable   => 0,
267
  },
260
  },
268
  "illus",
261
  "illus",
269
  { data_type => "varchar", is_nullable => 1, size => 255 },
262
  { data_type => "varchar", is_nullable => 1, size => 255 },
Lines 298-314 __PACKAGE__->add_columns( Link Here
298
  "marcxml",
291
  "marcxml",
299
  { data_type => "longtext", is_nullable => 0 },
292
  { data_type => "longtext", is_nullable => 0 },
300
);
293
);
301
302
=head1 PRIMARY KEY
303
304
=over 4
305
306
=item * L</biblioitemnumber>
307
308
=back
309
310
=cut
311
312
__PACKAGE__->set_primary_key("biblioitemnumber");
294
__PACKAGE__->set_primary_key("biblioitemnumber");
313
295
314
=head1 RELATIONS
296
=head1 RELATIONS
Lines 325-331 __PACKAGE__->belongs_to( Link Here
325
  "biblionumber",
307
  "biblionumber",
326
  "Koha::Schema::Result::Biblio",
308
  "Koha::Schema::Result::Biblio",
327
  { biblionumber => "biblionumber" },
309
  { biblionumber => "biblionumber" },
328
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
310
  { on_delete => "CASCADE", on_update => "CASCADE" },
329
);
311
);
330
312
331
=head2 items
313
=head2 items
Lines 344-351 __PACKAGE__->has_many( Link Here
344
);
326
);
345
327
346
328
347
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
329
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
348
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Vyrs9pWYoqhWJw+cRy1EVg
330
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fThPEh3uTO8Cd3nnCGEuzw
349
331
350
332
351
# You can replace this text with custom content, and it will be preserved on regeneration
333
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Borrower.pm (-110 / +57 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Borrower;
1
package Koha::Schema::Result::Borrower;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Borrower
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrowers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Borrower
19
15
20
=cut
16
=cut
21
17
Lines 191-197 __PACKAGE__->table("borrowers"); Link Here
191
=head2 dateofbirth
187
=head2 dateofbirth
192
188
193
  data_type: 'date'
189
  data_type: 'date'
194
  datetime_undef_if_invalid: 1
195
  is_nullable: 1
190
  is_nullable: 1
196
191
197
=head2 branchcode
192
=head2 branchcode
Lines 213-225 __PACKAGE__->table("borrowers"); Link Here
213
=head2 dateenrolled
208
=head2 dateenrolled
214
209
215
  data_type: 'date'
210
  data_type: 'date'
216
  datetime_undef_if_invalid: 1
217
  is_nullable: 1
211
  is_nullable: 1
218
212
219
=head2 dateexpiry
213
=head2 dateexpiry
220
214
221
  data_type: 'date'
215
  data_type: 'date'
222
  datetime_undef_if_invalid: 1
223
  is_nullable: 1
216
  is_nullable: 1
224
217
225
=head2 gonenoaddress
218
=head2 gonenoaddress
Lines 235-241 __PACKAGE__->table("borrowers"); Link Here
235
=head2 debarred
228
=head2 debarred
236
229
237
  data_type: 'date'
230
  data_type: 'date'
238
  datetime_undef_if_invalid: 1
239
  is_nullable: 1
231
  is_nullable: 1
240
232
241
=head2 debarredcomment
233
=head2 debarredcomment
Lines 397-402 __PACKAGE__->table("borrowers"); Link Here
397
  default_value: 1
389
  default_value: 1
398
  is_nullable: 0
390
  is_nullable: 0
399
391
392
=head2 account_balance
393
394
  data_type: 'decimal'
395
  default_value: 0.000000
396
  is_nullable: 0
397
  size: [28,6]
398
400
=cut
399
=cut
401
400
402
__PACKAGE__->add_columns(
401
__PACKAGE__->add_columns(
Lines 463-469 __PACKAGE__->add_columns( Link Here
463
  "b_phone",
462
  "b_phone",
464
  { data_type => "mediumtext", is_nullable => 1 },
463
  { data_type => "mediumtext", is_nullable => 1 },
465
  "dateofbirth",
464
  "dateofbirth",
466
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
465
  { data_type => "date", is_nullable => 1 },
467
  "branchcode",
466
  "branchcode",
468
  {
467
  {
469
    data_type => "varchar",
468
    data_type => "varchar",
Lines 481-495 __PACKAGE__->add_columns( Link Here
481
    size => 10,
480
    size => 10,
482
  },
481
  },
483
  "dateenrolled",
482
  "dateenrolled",
484
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
483
  { data_type => "date", is_nullable => 1 },
485
  "dateexpiry",
484
  "dateexpiry",
486
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
485
  { data_type => "date", is_nullable => 1 },
487
  "gonenoaddress",
486
  "gonenoaddress",
488
  { data_type => "tinyint", is_nullable => 1 },
487
  { data_type => "tinyint", is_nullable => 1 },
489
  "lost",
488
  "lost",
490
  { data_type => "tinyint", is_nullable => 1 },
489
  { data_type => "tinyint", is_nullable => 1 },
491
  "debarred",
490
  "debarred",
492
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
491
  { data_type => "date", is_nullable => 1 },
493
  "debarredcomment",
492
  "debarredcomment",
494
  { data_type => "varchar", is_nullable => 1, size => 255 },
493
  { data_type => "varchar", is_nullable => 1, size => 255 },
495
  "contactname",
494
  "contactname",
Lines 546-580 __PACKAGE__->add_columns( Link Here
546
  { data_type => "varchar", is_nullable => 1, size => 50 },
545
  { data_type => "varchar", is_nullable => 1, size => 50 },
547
  "privacy",
546
  "privacy",
548
  { data_type => "integer", default_value => 1, is_nullable => 0 },
547
  { data_type => "integer", default_value => 1, is_nullable => 0 },
548
  "account_balance",
549
  {
550
    data_type => "decimal",
551
    default_value => "0.000000",
552
    is_nullable => 0,
553
    size => [28, 6],
554
  },
549
);
555
);
556
__PACKAGE__->set_primary_key("borrowernumber");
557
__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
550
558
551
=head1 PRIMARY KEY
559
=head1 RELATIONS
552
560
553
=over 4
561
=head2 account_credits
554
562
555
=item * L</borrowernumber>
563
Type: has_many
556
564
557
=back
565
Related object: L<Koha::Schema::Result::AccountCredit>
558
566
559
=cut
567
=cut
560
568
561
__PACKAGE__->set_primary_key("borrowernumber");
569
__PACKAGE__->has_many(
562
570
  "account_credits",
563
=head1 UNIQUE CONSTRAINTS
571
  "Koha::Schema::Result::AccountCredit",
564
572
  { "foreign.borrowernumber" => "self.borrowernumber" },
565
=head2 C<cardnumber>
573
  { cascade_copy => 0, cascade_delete => 0 },
574
);
566
575
567
=over 4
576
=head2 account_debits
568
577
569
=item * L</cardnumber>
578
Type: has_many
570
579
571
=back
580
Related object: L<Koha::Schema::Result::AccountDebit>
572
581
573
=cut
582
=cut
574
583
575
__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
584
__PACKAGE__->has_many(
576
585
  "account_debits",
577
=head1 RELATIONS
586
  "Koha::Schema::Result::AccountDebit",
587
  { "foreign.borrowernumber" => "self.borrowernumber" },
588
  { cascade_copy => 0, cascade_delete => 0 },
589
);
578
590
579
=head2 accountlines
591
=head2 accountlines
580
592
Lines 636-656 __PACKAGE__->has_many( Link Here
636
  { cascade_copy => 0, cascade_delete => 0 },
648
  { cascade_copy => 0, cascade_delete => 0 },
637
);
649
);
638
650
639
=head2 borrower_debarments
640
641
Type: has_many
642
643
Related object: L<Koha::Schema::Result::BorrowerDebarment>
644
645
=cut
646
647
__PACKAGE__->has_many(
648
  "borrower_debarments",
649
  "Koha::Schema::Result::BorrowerDebarment",
650
  { "foreign.borrowernumber" => "self.borrowernumber" },
651
  { cascade_copy => 0, cascade_delete => 0 },
652
);
653
654
=head2 borrower_files
651
=head2 borrower_files
655
652
656
Type: has_many
653
Type: has_many
Lines 681-714 __PACKAGE__->has_many( Link Here
681
  { cascade_copy => 0, cascade_delete => 0 },
678
  { cascade_copy => 0, cascade_delete => 0 },
682
);
679
);
683
680
684
=head2 branchcode
681
=head2 categorycode
685
682
686
Type: belongs_to
683
Type: belongs_to
687
684
688
Related object: L<Koha::Schema::Result::Branch>
685
Related object: L<Koha::Schema::Result::Category>
689
686
690
=cut
687
=cut
691
688
692
__PACKAGE__->belongs_to(
689
__PACKAGE__->belongs_to(
693
  "branchcode",
690
  "categorycode",
694
  "Koha::Schema::Result::Branch",
691
  "Koha::Schema::Result::Category",
695
  { branchcode => "branchcode" },
692
  { categorycode => "categorycode" },
696
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
693
  { on_delete => "CASCADE", on_update => "CASCADE" },
697
);
694
);
698
695
699
=head2 categorycode
696
=head2 branchcode
700
697
701
Type: belongs_to
698
Type: belongs_to
702
699
703
Related object: L<Koha::Schema::Result::Category>
700
Related object: L<Koha::Schema::Result::Branch>
704
701
705
=cut
702
=cut
706
703
707
__PACKAGE__->belongs_to(
704
__PACKAGE__->belongs_to(
708
  "categorycode",
705
  "branchcode",
709
  "Koha::Schema::Result::Category",
706
  "Koha::Schema::Result::Branch",
710
  { categorycode => "categorycode" },
707
  { branchcode => "branchcode" },
711
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
708
  { on_delete => "CASCADE", on_update => "CASCADE" },
712
);
709
);
713
710
714
=head2 course_instructors
711
=head2 course_instructors
Lines 816-851 __PACKAGE__->has_many( Link Here
816
  { cascade_copy => 0, cascade_delete => 0 },
813
  { cascade_copy => 0, cascade_delete => 0 },
817
);
814
);
818
815
819
=head2 patron_list_patrons
820
821
Type: has_many
822
823
Related object: L<Koha::Schema::Result::PatronListPatron>
824
825
=cut
826
827
__PACKAGE__->has_many(
828
  "patron_list_patrons",
829
  "Koha::Schema::Result::PatronListPatron",
830
  { "foreign.borrowernumber" => "self.borrowernumber" },
831
  { cascade_copy => 0, cascade_delete => 0 },
832
);
833
834
=head2 patron_lists
835
836
Type: has_many
837
838
Related object: L<Koha::Schema::Result::PatronList>
839
840
=cut
841
842
__PACKAGE__->has_many(
843
  "patron_lists",
844
  "Koha::Schema::Result::PatronList",
845
  { "foreign.owner" => "self.borrowernumber" },
846
  { cascade_copy => 0, cascade_delete => 0 },
847
);
848
849
=head2 patroncards
816
=head2 patroncards
850
817
851
Type: has_many
818
Type: has_many
Lines 1026-1054 __PACKAGE__->has_many( Link Here
1026
  { cascade_copy => 0, cascade_delete => 0 },
993
  { cascade_copy => 0, cascade_delete => 0 },
1027
);
994
);
1028
995
1029
=head2 budgets
1030
1031
Type: many_to_many
1032
1033
Composing rels: L</aqbudgetborrowers> -> budget
1034
1035
=cut
1036
1037
__PACKAGE__->many_to_many("budgets", "aqbudgetborrowers", "budget");
1038
1039
=head2 courses
1040
1041
Type: many_to_many
1042
1043
Composing rels: L</course_instructors> -> course
1044
1045
=cut
1046
1047
__PACKAGE__->many_to_many("courses", "course_instructors", "course");
1048
1049
996
1050
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 01:30:23
997
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
1051
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eZfDBeShjI29Q8P6Z8CQNA
998
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mLnDHTMVBhWw4yS02TDcOQ
1052
999
1053
1000
1054
# You can replace this text with custom content, and it will be preserved on regeneration
1001
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerAttribute.pm (-12 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerAttribute;
1
package Koha::Schema::Result::BorrowerAttribute;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerAttribute
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrower_attributes>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BorrowerAttribute
19
15
20
=cut
16
=cut
21
17
Lines 75-81 __PACKAGE__->belongs_to( Link Here
75
  "borrowernumber",
71
  "borrowernumber",
76
  "Koha::Schema::Result::Borrower",
72
  "Koha::Schema::Result::Borrower",
77
  { borrowernumber => "borrowernumber" },
73
  { borrowernumber => "borrowernumber" },
78
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
  { on_delete => "CASCADE", on_update => "CASCADE" },
79
);
75
);
80
76
81
=head2 code
77
=head2 code
Lines 90-101 __PACKAGE__->belongs_to( Link Here
90
  "code",
86
  "code",
91
  "Koha::Schema::Result::BorrowerAttributeType",
87
  "Koha::Schema::Result::BorrowerAttributeType",
92
  { code => "code" },
88
  { code => "code" },
93
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89
  { on_delete => "CASCADE", on_update => "CASCADE" },
94
);
90
);
95
91
96
92
97
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9oRy+X25+b7vB03WSnpFTg
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bcpja8FL3mBbkCmsW+YCAQ
99
95
100
96
101
# You can replace this text with custom content, and it will be preserved on regeneration
97
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerAttributeType;
1
package Koha::Schema::Result::BorrowerAttributeType;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerAttributeType
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrower_attribute_types>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BorrowerAttributeType
19
15
20
=cut
16
=cut
21
17
Lines 116-132 __PACKAGE__->add_columns( Link Here
116
  "class",
112
  "class",
117
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
113
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
118
);
114
);
119
120
=head1 PRIMARY KEY
121
122
=over 4
123
124
=item * L</code>
125
126
=back
127
128
=cut
129
130
__PACKAGE__->set_primary_key("code");
115
__PACKAGE__->set_primary_key("code");
131
116
132
=head1 RELATIONS
117
=head1 RELATIONS
Lines 162-169 __PACKAGE__->has_many( Link Here
162
);
147
);
163
148
164
149
165
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
150
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xFtIJw7nKVVk6dzBVDO60A
151
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IEeQhigJCzM/B3I1In0vSw
167
152
168
153
169
# You can replace this text with custom content, and it will be preserved on regeneration
154
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerAttributeTypesBranch.pm (-32 / +18 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerAttributeTypesBranch;
1
package Koha::Schema::Result::BorrowerAttributeTypesBranch;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerAttributeTypesBranch
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrower_attribute_types_branches>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BorrowerAttributeTypesBranch
19
15
20
=cut
16
=cut
21
17
Lines 48-96 __PACKAGE__->add_columns( Link Here
48
44
49
=head1 RELATIONS
45
=head1 RELATIONS
50
46
51
=head2 b_branchcode
47
=head2 bat_code
52
48
53
Type: belongs_to
49
Type: belongs_to
54
50
55
Related object: L<Koha::Schema::Result::Branch>
51
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
56
52
57
=cut
53
=cut
58
54
59
__PACKAGE__->belongs_to(
55
__PACKAGE__->belongs_to(
60
  "b_branchcode",
56
  "bat_code",
61
  "Koha::Schema::Result::Branch",
57
  "Koha::Schema::Result::BorrowerAttributeType",
62
  { branchcode => "b_branchcode" },
58
  { code => "bat_code" },
63
  {
59
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
64
    is_deferrable => 1,
65
    join_type     => "LEFT",
66
    on_delete     => "CASCADE",
67
    on_update     => "CASCADE",
68
  },
69
);
60
);
70
61
71
=head2 bat_code
62
=head2 b_branchcode
72
63
73
Type: belongs_to
64
Type: belongs_to
74
65
75
Related object: L<Koha::Schema::Result::BorrowerAttributeType>
66
Related object: L<Koha::Schema::Result::Branch>
76
67
77
=cut
68
=cut
78
69
79
__PACKAGE__->belongs_to(
70
__PACKAGE__->belongs_to(
80
  "bat_code",
71
  "b_branchcode",
81
  "Koha::Schema::Result::BorrowerAttributeType",
72
  "Koha::Schema::Result::Branch",
82
  { code => "bat_code" },
73
  { branchcode => "b_branchcode" },
83
  {
74
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
84
    is_deferrable => 1,
85
    join_type     => "LEFT",
86
    on_delete     => "CASCADE",
87
    on_update     => "CASCADE",
88
  },
89
);
75
);
90
76
91
77
92
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
78
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/ppDBtfKZvUNcERWFbLuuw
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+fUjRJTVpwxTczYnA5Q9rA
94
80
95
81
96
# You can replace this text with custom content, and it will be preserved on regeneration
82
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerFile.pm (-26 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerFile;
1
package Koha::Schema::Result::BorrowerFile;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerFile
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrower_files>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BorrowerFile
19
15
20
=cut
16
=cut
21
17
Lines 61-67 __PACKAGE__->table("borrower_files"); Link Here
61
=head2 date_uploaded
57
=head2 date_uploaded
62
58
63
  data_type: 'timestamp'
59
  data_type: 'timestamp'
64
  datetime_undef_if_invalid: 1
65
  default_value: current_timestamp
60
  default_value: current_timestamp
66
  is_nullable: 0
61
  is_nullable: 0
67
62
Lines 82-104 __PACKAGE__->add_columns( Link Here
82
  { data_type => "longblob", is_nullable => 0 },
77
  { data_type => "longblob", is_nullable => 0 },
83
  "date_uploaded",
78
  "date_uploaded",
84
  {
79
  {
85
    data_type => "timestamp",
80
    data_type     => "timestamp",
86
    datetime_undef_if_invalid => 1,
87
    default_value => \"current_timestamp",
81
    default_value => \"current_timestamp",
88
    is_nullable => 0,
82
    is_nullable   => 0,
89
  },
83
  },
90
);
84
);
91
92
=head1 PRIMARY KEY
93
94
=over 4
95
96
=item * L</file_id>
97
98
=back
99
100
=cut
101
102
__PACKAGE__->set_primary_key("file_id");
85
__PACKAGE__->set_primary_key("file_id");
103
86
104
=head1 RELATIONS
87
=head1 RELATIONS
Lines 115-126 __PACKAGE__->belongs_to( Link Here
115
  "borrowernumber",
98
  "borrowernumber",
116
  "Koha::Schema::Result::Borrower",
99
  "Koha::Schema::Result::Borrower",
117
  { borrowernumber => "borrowernumber" },
100
  { borrowernumber => "borrowernumber" },
118
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
101
  { on_delete => "CASCADE", on_update => "CASCADE" },
119
);
102
);
120
103
121
104
122
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
105
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
123
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sbkf7bvdO4CgmiBLgIwYQg
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mvf7TdO9v5EgQFAMjTO7Ug
124
107
125
108
126
# You can replace this text with custom content, and it will be preserved on regeneration
109
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerMessagePreference.pm (-72 / +28 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerMessagePreference;
1
package Koha::Schema::Result::BorrowerMessagePreference;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerMessagePreference
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrower_message_preferences>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BorrowerMessagePreference
19
15
20
=cut
16
=cut
21
17
Lines 82-119 __PACKAGE__->add_columns( Link Here
82
  "wants_digest",
78
  "wants_digest",
83
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
79
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
84
);
80
);
85
86
=head1 PRIMARY KEY
87
88
=over 4
89
90
=item * L</borrower_message_preference_id>
91
92
=back
93
94
=cut
95
96
__PACKAGE__->set_primary_key("borrower_message_preference_id");
81
__PACKAGE__->set_primary_key("borrower_message_preference_id");
97
82
98
=head1 RELATIONS
83
=head1 RELATIONS
99
84
100
=head2 borrower_message_transport_preferences
101
102
Type: has_many
103
104
Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
105
106
=cut
107
108
__PACKAGE__->has_many(
109
  "borrower_message_transport_preferences",
110
  "Koha::Schema::Result::BorrowerMessageTransportPreference",
111
  {
112
    "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
113
  },
114
  { cascade_copy => 0, cascade_delete => 0 },
115
);
116
117
=head2 borrowernumber
85
=head2 borrowernumber
118
86
119
Type: belongs_to
87
Type: belongs_to
Lines 126-196 __PACKAGE__->belongs_to( Link Here
126
  "borrowernumber",
94
  "borrowernumber",
127
  "Koha::Schema::Result::Borrower",
95
  "Koha::Schema::Result::Borrower",
128
  { borrowernumber => "borrowernumber" },
96
  { borrowernumber => "borrowernumber" },
129
  {
97
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
130
    is_deferrable => 1,
131
    join_type     => "LEFT",
132
    on_delete     => "CASCADE",
133
    on_update     => "CASCADE",
134
  },
135
);
98
);
136
99
137
=head2 categorycode
100
=head2 message_attribute
138
101
139
Type: belongs_to
102
Type: belongs_to
140
103
141
Related object: L<Koha::Schema::Result::Category>
104
Related object: L<Koha::Schema::Result::MessageAttribute>
142
105
143
=cut
106
=cut
144
107
145
__PACKAGE__->belongs_to(
108
__PACKAGE__->belongs_to(
146
  "categorycode",
109
  "message_attribute",
147
  "Koha::Schema::Result::Category",
110
  "Koha::Schema::Result::MessageAttribute",
148
  { categorycode => "categorycode" },
111
  { message_attribute_id => "message_attribute_id" },
149
  {
112
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
150
    is_deferrable => 1,
151
    join_type     => "LEFT",
152
    on_delete     => "CASCADE",
153
    on_update     => "CASCADE",
154
  },
155
);
113
);
156
114
157
=head2 message_attribute
115
=head2 categorycode
158
116
159
Type: belongs_to
117
Type: belongs_to
160
118
161
Related object: L<Koha::Schema::Result::MessageAttribute>
119
Related object: L<Koha::Schema::Result::Category>
162
120
163
=cut
121
=cut
164
122
165
__PACKAGE__->belongs_to(
123
__PACKAGE__->belongs_to(
166
  "message_attribute",
124
  "categorycode",
167
  "Koha::Schema::Result::MessageAttribute",
125
  "Koha::Schema::Result::Category",
168
  { message_attribute_id => "message_attribute_id" },
126
  { categorycode => "categorycode" },
169
  {
127
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
170
    is_deferrable => 1,
171
    join_type     => "LEFT",
172
    on_delete     => "CASCADE",
173
    on_update     => "CASCADE",
174
  },
175
);
128
);
176
129
177
=head2 message_transport_types
130
=head2 borrower_message_transport_preferences
178
131
179
Type: many_to_many
132
Type: has_many
180
133
181
Composing rels: L</borrower_message_transport_preferences> -> message_transport_type
134
Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
182
135
183
=cut
136
=cut
184
137
185
__PACKAGE__->many_to_many(
138
__PACKAGE__->has_many(
186
  "message_transport_types",
187
  "borrower_message_transport_preferences",
139
  "borrower_message_transport_preferences",
188
  "message_transport_type",
140
  "Koha::Schema::Result::BorrowerMessageTransportPreference",
141
  {
142
    "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
143
  },
144
  { cascade_copy => 0, cascade_delete => 0 },
189
);
145
);
190
146
191
147
192
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
148
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
193
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hd5sPnxGi5332WmzqCus8A
149
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dWzckwhkF4EeG3zZmZYBxA
194
150
195
151
196
# You can replace this text with custom content, and it will be preserved on regeneration
152
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerMessageTransportPreference.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerMessageTransportPreference;
1
package Koha::Schema::Result::BorrowerMessageTransportPreference;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerMessageTransportPreference
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrower_message_transport_preferences>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BorrowerMessageTransportPreference
19
15
20
=cut
16
=cut
21
17
Lines 57-75 __PACKAGE__->add_columns( Link Here
57
    size => 20,
53
    size => 20,
58
  },
54
  },
59
);
55
);
60
61
=head1 PRIMARY KEY
62
63
=over 4
64
65
=item * L</borrower_message_preference_id>
66
67
=item * L</message_transport_type>
68
69
=back
70
71
=cut
72
73
__PACKAGE__->set_primary_key("borrower_message_preference_id", "message_transport_type");
56
__PACKAGE__->set_primary_key("borrower_message_preference_id", "message_transport_type");
74
57
75
=head1 RELATIONS
58
=head1 RELATIONS
Lines 88-94 __PACKAGE__->belongs_to( Link Here
88
  {
71
  {
89
    borrower_message_preference_id => "borrower_message_preference_id",
72
    borrower_message_preference_id => "borrower_message_preference_id",
90
  },
73
  },
91
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
  { on_delete => "CASCADE", on_update => "CASCADE" },
92
);
75
);
93
76
94
=head2 message_transport_type
77
=head2 message_transport_type
Lines 103-114 __PACKAGE__->belongs_to( Link Here
103
  "message_transport_type",
86
  "message_transport_type",
104
  "Koha::Schema::Result::MessageTransportType",
87
  "Koha::Schema::Result::MessageTransportType",
105
  { message_transport_type => "message_transport_type" },
88
  { message_transport_type => "message_transport_type" },
106
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89
  { on_delete => "CASCADE", on_update => "CASCADE" },
107
);
90
);
108
91
109
92
110
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yHKWBur//GdtTL5IdjcgIg
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6YU8O7rRjooqpzvXTf6hkA
112
95
113
96
114
# You can replace this text with custom content, and it will be preserved on regeneration
97
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BorrowerModification.pm (-35 / +12 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerModification;
1
package Koha::Schema::Result::BorrowerModification;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerModification
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<borrower_modifications>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BorrowerModification
19
15
20
=cut
16
=cut
21
17
Lines 26-32 __PACKAGE__->table("borrower_modifications"); Link Here
26
=head2 timestamp
22
=head2 timestamp
27
23
28
  data_type: 'timestamp'
24
  data_type: 'timestamp'
29
  datetime_undef_if_invalid: 1
30
  default_value: current_timestamp
25
  default_value: current_timestamp
31
  is_nullable: 0
26
  is_nullable: 0
32
27
Lines 205-211 __PACKAGE__->table("borrower_modifications"); Link Here
205
=head2 dateofbirth
200
=head2 dateofbirth
206
201
207
  data_type: 'date'
202
  data_type: 'date'
208
  datetime_undef_if_invalid: 1
209
  is_nullable: 1
203
  is_nullable: 1
210
204
211
=head2 branchcode
205
=head2 branchcode
Lines 223-235 __PACKAGE__->table("borrower_modifications"); Link Here
223
=head2 dateenrolled
217
=head2 dateenrolled
224
218
225
  data_type: 'date'
219
  data_type: 'date'
226
  datetime_undef_if_invalid: 1
227
  is_nullable: 1
220
  is_nullable: 1
228
221
229
=head2 dateexpiry
222
=head2 dateexpiry
230
223
231
  data_type: 'date'
224
  data_type: 'date'
232
  datetime_undef_if_invalid: 1
233
  is_nullable: 1
225
  is_nullable: 1
234
226
235
=head2 gonenoaddress
227
=head2 gonenoaddress
Lines 245-251 __PACKAGE__->table("borrower_modifications"); Link Here
245
=head2 debarred
237
=head2 debarred
246
238
247
  data_type: 'date'
239
  data_type: 'date'
248
  datetime_undef_if_invalid: 1
249
  is_nullable: 1
240
  is_nullable: 1
250
241
251
=head2 debarredcomment
242
=head2 debarredcomment
Lines 411-420 __PACKAGE__->table("borrower_modifications"); Link Here
411
__PACKAGE__->add_columns(
402
__PACKAGE__->add_columns(
412
  "timestamp",
403
  "timestamp",
413
  {
404
  {
414
    data_type => "timestamp",
405
    data_type     => "timestamp",
415
    datetime_undef_if_invalid => 1,
416
    default_value => \"current_timestamp",
406
    default_value => \"current_timestamp",
417
    is_nullable => 0,
407
    is_nullable   => 0,
418
  },
408
  },
419
  "verification_token",
409
  "verification_token",
420
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
410
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
Lines 481-501 __PACKAGE__->add_columns( Link Here
481
  "b_phone",
471
  "b_phone",
482
  { data_type => "mediumtext", is_nullable => 1 },
472
  { data_type => "mediumtext", is_nullable => 1 },
483
  "dateofbirth",
473
  "dateofbirth",
484
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
474
  { data_type => "date", is_nullable => 1 },
485
  "branchcode",
475
  "branchcode",
486
  { data_type => "varchar", is_nullable => 1, size => 10 },
476
  { data_type => "varchar", is_nullable => 1, size => 10 },
487
  "categorycode",
477
  "categorycode",
488
  { data_type => "varchar", is_nullable => 1, size => 10 },
478
  { data_type => "varchar", is_nullable => 1, size => 10 },
489
  "dateenrolled",
479
  "dateenrolled",
490
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
480
  { data_type => "date", is_nullable => 1 },
491
  "dateexpiry",
481
  "dateexpiry",
492
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
482
  { data_type => "date", is_nullable => 1 },
493
  "gonenoaddress",
483
  "gonenoaddress",
494
  { data_type => "tinyint", is_nullable => 1 },
484
  { data_type => "tinyint", is_nullable => 1 },
495
  "lost",
485
  "lost",
496
  { data_type => "tinyint", is_nullable => 1 },
486
  { data_type => "tinyint", is_nullable => 1 },
497
  "debarred",
487
  "debarred",
498
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
488
  { data_type => "date", is_nullable => 1 },
499
  "debarredcomment",
489
  "debarredcomment",
500
  { data_type => "varchar", is_nullable => 1, size => 255 },
490
  { data_type => "varchar", is_nullable => 1, size => 255 },
501
  "contactname",
491
  "contactname",
Lines 553-576 __PACKAGE__->add_columns( Link Here
553
  "privacy",
543
  "privacy",
554
  { data_type => "integer", is_nullable => 1 },
544
  { data_type => "integer", is_nullable => 1 },
555
);
545
);
556
557
=head1 PRIMARY KEY
558
559
=over 4
560
561
=item * L</verification_token>
562
563
=item * L</borrowernumber>
564
565
=back
566
567
=cut
568
569
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
546
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
570
547
571
548
572
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
549
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
573
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:11X5o3u4/EqPRVbQdtAuOA
550
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EJHN/T7TWmOqiyW2IOfAZA
574
551
575
552
576
# You can replace this text with custom content, and it will be preserved on regeneration
553
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branch.pm (-37 / +12 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Branch;
1
package Koha::Schema::Result::Branch;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Branch
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<branches>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Branch
19
15
20
=cut
16
=cut
21
17
Lines 158-174 __PACKAGE__->add_columns( Link Here
158
  "opac_info",
154
  "opac_info",
159
  { data_type => "text", is_nullable => 1 },
155
  { data_type => "text", is_nullable => 1 },
160
);
156
);
161
162
=head1 PRIMARY KEY
163
164
=over 4
165
166
=item * L</branchcode>
167
168
=back
169
170
=cut
171
172
__PACKAGE__->set_primary_key("branchcode");
157
__PACKAGE__->set_primary_key("branchcode");
173
158
174
=head1 RELATIONS
159
=head1 RELATIONS
Lines 368-374 __PACKAGE__->has_many( Link Here
368
  { cascade_copy => 0, cascade_delete => 0 },
353
  { cascade_copy => 0, cascade_delete => 0 },
369
);
354
);
370
355
371
=head2 items_holdingbranches
356
=head2 items_homebranches
372
357
373
Type: has_many
358
Type: has_many
374
359
Lines 377-389 Related object: L<Koha::Schema::Result::Item> Link Here
377
=cut
362
=cut
378
363
379
__PACKAGE__->has_many(
364
__PACKAGE__->has_many(
380
  "items_holdingbranches",
365
  "items_homebranches",
381
  "Koha::Schema::Result::Item",
366
  "Koha::Schema::Result::Item",
382
  { "foreign.holdingbranch" => "self.branchcode" },
367
  { "foreign.homebranch" => "self.branchcode" },
383
  { cascade_copy => 0, cascade_delete => 0 },
368
  { cascade_copy => 0, cascade_delete => 0 },
384
);
369
);
385
370
386
=head2 items_homebranches
371
=head2 items_holdingbranches
387
372
388
Type: has_many
373
Type: has_many
389
374
Lines 392-400 Related object: L<Koha::Schema::Result::Item> Link Here
392
=cut
377
=cut
393
378
394
__PACKAGE__->has_many(
379
__PACKAGE__->has_many(
395
  "items_homebranches",
380
  "items_holdingbranches",
396
  "Koha::Schema::Result::Item",
381
  "Koha::Schema::Result::Item",
397
  { "foreign.homebranch" => "self.branchcode" },
382
  { "foreign.holdingbranch" => "self.branchcode" },
398
  { cascade_copy => 0, cascade_delete => 0 },
383
  { cascade_copy => 0, cascade_delete => 0 },
399
);
384
);
400
385
Lines 443-461 __PACKAGE__->has_many( Link Here
443
  { cascade_copy => 0, cascade_delete => 0 },
428
  { cascade_copy => 0, cascade_delete => 0 },
444
);
429
);
445
430
446
=head2 categorycodes
447
448
Type: many_to_many
449
450
Composing rels: L</branchrelations> -> categorycode
451
452
=cut
453
454
__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
455
456
431
457
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
432
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
458
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7TY0QNDQkB33iQeLAgo1qg
433
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1Ucp7F1fg8mFW+eZjOfDtw
459
434
460
435
461
# 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/BranchBorrowerCircRule.pm (-35 / +18 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BranchBorrowerCircRule;
1
package Koha::Schema::Result::BranchBorrowerCircRule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BranchBorrowerCircRule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<branch_borrower_circ_rules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BranchBorrowerCircRule
19
15
20
=cut
16
=cut
21
17
Lines 52-107 __PACKAGE__->add_columns( Link Here
52
  "maxissueqty",
48
  "maxissueqty",
53
  { data_type => "integer", is_nullable => 1 },
49
  { data_type => "integer", is_nullable => 1 },
54
);
50
);
55
56
=head1 PRIMARY KEY
57
58
=over 4
59
60
=item * L</categorycode>
61
62
=item * L</branchcode>
63
64
=back
65
66
=cut
67
68
__PACKAGE__->set_primary_key("categorycode", "branchcode");
51
__PACKAGE__->set_primary_key("categorycode", "branchcode");
69
52
70
=head1 RELATIONS
53
=head1 RELATIONS
71
54
72
=head2 branchcode
55
=head2 categorycode
73
56
74
Type: belongs_to
57
Type: belongs_to
75
58
76
Related object: L<Koha::Schema::Result::Branch>
59
Related object: L<Koha::Schema::Result::Category>
77
60
78
=cut
61
=cut
79
62
80
__PACKAGE__->belongs_to(
63
__PACKAGE__->belongs_to(
81
  "branchcode",
64
  "categorycode",
82
  "Koha::Schema::Result::Branch",
65
  "Koha::Schema::Result::Category",
83
  { branchcode => "branchcode" },
66
  { categorycode => "categorycode" },
84
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
67
  { on_delete => "CASCADE", on_update => "CASCADE" },
85
);
68
);
86
69
87
=head2 categorycode
70
=head2 branchcode
88
71
89
Type: belongs_to
72
Type: belongs_to
90
73
91
Related object: L<Koha::Schema::Result::Category>
74
Related object: L<Koha::Schema::Result::Branch>
92
75
93
=cut
76
=cut
94
77
95
__PACKAGE__->belongs_to(
78
__PACKAGE__->belongs_to(
96
  "categorycode",
79
  "branchcode",
97
  "Koha::Schema::Result::Category",
80
  "Koha::Schema::Result::Branch",
98
  { categorycode => "categorycode" },
81
  { branchcode => "branchcode" },
99
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
82
  { on_delete => "CASCADE", on_update => "CASCADE" },
100
);
83
);
101
84
102
85
103
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
104
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X24Sil3WTnxoeAa/16tpUQ
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Td+m6WeQtSkKvKjYLjxWHg
105
88
106
89
107
# You can replace this text with custom content, and it will be preserved on regeneration
90
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BranchItemRule.pm (-35 / +18 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BranchItemRule;
1
package Koha::Schema::Result::BranchItemRule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BranchItemRule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<branch_item_rules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BranchItemRule
19
15
20
=cut
16
=cut
21
17
Lines 60-115 __PACKAGE__->add_columns( Link Here
60
  "returnbranch",
56
  "returnbranch",
61
  { data_type => "varchar", is_nullable => 1, size => 15 },
57
  { data_type => "varchar", is_nullable => 1, size => 15 },
62
);
58
);
63
64
=head1 PRIMARY KEY
65
66
=over 4
67
68
=item * L</itemtype>
69
70
=item * L</branchcode>
71
72
=back
73
74
=cut
75
76
__PACKAGE__->set_primary_key("itemtype", "branchcode");
59
__PACKAGE__->set_primary_key("itemtype", "branchcode");
77
60
78
=head1 RELATIONS
61
=head1 RELATIONS
79
62
80
=head2 branchcode
63
=head2 itemtype
81
64
82
Type: belongs_to
65
Type: belongs_to
83
66
84
Related object: L<Koha::Schema::Result::Branch>
67
Related object: L<Koha::Schema::Result::Itemtype>
85
68
86
=cut
69
=cut
87
70
88
__PACKAGE__->belongs_to(
71
__PACKAGE__->belongs_to(
89
  "branchcode",
72
  "itemtype",
90
  "Koha::Schema::Result::Branch",
73
  "Koha::Schema::Result::Itemtype",
91
  { branchcode => "branchcode" },
74
  { itemtype => "itemtype" },
92
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75
  { on_delete => "CASCADE", on_update => "CASCADE" },
93
);
76
);
94
77
95
=head2 itemtype
78
=head2 branchcode
96
79
97
Type: belongs_to
80
Type: belongs_to
98
81
99
Related object: L<Koha::Schema::Result::Itemtype>
82
Related object: L<Koha::Schema::Result::Branch>
100
83
101
=cut
84
=cut
102
85
103
__PACKAGE__->belongs_to(
86
__PACKAGE__->belongs_to(
104
  "itemtype",
87
  "branchcode",
105
  "Koha::Schema::Result::Itemtype",
88
  "Koha::Schema::Result::Branch",
106
  { itemtype => "itemtype" },
89
  { branchcode => "branchcode" },
107
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
  { on_delete => "CASCADE", on_update => "CASCADE" },
108
);
91
);
109
92
110
93
111
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
94
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
112
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YLO0fLLilsc7tSfx8v/biw
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:htnqayHITGdrDIS4hzqKBA
113
96
114
97
115
# 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/BranchTransferLimit.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::BranchTransferLimit;
1
package Koha::Schema::Result::BranchTransferLimit;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::BranchTransferLimit
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<branch_transfer_limits>
11
12
=head1 NAME
13
14
Koha::Schema::Result::BranchTransferLimit
19
15
20
=cut
16
=cut
21
17
Lines 67-88 __PACKAGE__->add_columns( Link Here
67
  "ccode",
63
  "ccode",
68
  { data_type => "varchar", is_nullable => 1, size => 10 },
64
  { data_type => "varchar", is_nullable => 1, size => 10 },
69
);
65
);
70
71
=head1 PRIMARY KEY
72
73
=over 4
74
75
=item * L</limitid>
76
77
=back
78
79
=cut
80
81
__PACKAGE__->set_primary_key("limitid");
66
__PACKAGE__->set_primary_key("limitid");
82
67
83
68
84
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
69
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HN/uEtGTNOewMCqTQZ1Vew
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VmkjtQKEx+M5zL1pxL+tzg
86
71
87
72
88
# You can replace this text with custom content, and it will be preserved on regeneration
73
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branchcategory.pm (-31 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Branchcategory;
1
package Koha::Schema::Result::Branchcategory;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Branchcategory
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<branchcategories>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Branchcategory
19
15
20
=cut
16
=cut
21
17
Lines 67-83 __PACKAGE__->add_columns( Link Here
67
  "show_in_pulldown",
63
  "show_in_pulldown",
68
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
64
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
69
);
65
);
70
71
=head1 PRIMARY KEY
72
73
=over 4
74
75
=item * L</categorycode>
76
77
=back
78
79
=cut
80
81
__PACKAGE__->set_primary_key("categorycode");
66
__PACKAGE__->set_primary_key("categorycode");
82
67
83
=head1 RELATIONS
68
=head1 RELATIONS
Lines 97-115 __PACKAGE__->has_many( Link Here
97
  { cascade_copy => 0, cascade_delete => 0 },
82
  { cascade_copy => 0, cascade_delete => 0 },
98
);
83
);
99
84
100
=head2 branchcodes
101
102
Type: many_to_many
103
104
Composing rels: L</branchrelations> -> branchcode
105
106
=cut
107
108
__PACKAGE__->many_to_many("branchcodes", "branchrelations", "branchcode");
109
110
85
111
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
112
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HU5N7lAiLIz6yC9va3fDbg
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t6PCNvQgTiu/wqdMIgURBg
113
88
114
89
115
# You can replace this text with custom content, and it will be preserved on regeneration
90
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branchrelation.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Branchrelation;
1
package Koha::Schema::Result::Branchrelation;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Branchrelation
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<branchrelations>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Branchrelation
19
15
20
=cut
16
=cut
21
17
Lines 59-77 __PACKAGE__->add_columns( Link Here
59
    size => 10,
55
    size => 10,
60
  },
56
  },
61
);
57
);
62
63
=head1 PRIMARY KEY
64
65
=over 4
66
67
=item * L</branchcode>
68
69
=item * L</categorycode>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("branchcode", "categorycode");
58
__PACKAGE__->set_primary_key("branchcode", "categorycode");
76
59
77
=head1 RELATIONS
60
=head1 RELATIONS
Lines 88-94 __PACKAGE__->belongs_to( Link Here
88
  "branchcode",
71
  "branchcode",
89
  "Koha::Schema::Result::Branch",
72
  "Koha::Schema::Result::Branch",
90
  { branchcode => "branchcode" },
73
  { branchcode => "branchcode" },
91
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
  { on_delete => "CASCADE", on_update => "CASCADE" },
92
);
75
);
93
76
94
=head2 categorycode
77
=head2 categorycode
Lines 103-114 __PACKAGE__->belongs_to( Link Here
103
  "categorycode",
86
  "categorycode",
104
  "Koha::Schema::Result::Branchcategory",
87
  "Koha::Schema::Result::Branchcategory",
105
  { categorycode => "categorycode" },
88
  { categorycode => "categorycode" },
106
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89
  { on_delete => "CASCADE", on_update => "CASCADE" },
107
);
90
);
108
91
109
92
110
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lBOq8k+wurbp633kbi8tVg
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yExh0GVmI9iXkDeGO8zK8g
112
95
113
96
114
# You can replace this text with custom content, and it will be preserved on regeneration
97
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branchtransfer.pm (-35 / +21 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Branchtransfer;
1
package Koha::Schema::Result::Branchtransfer;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Branchtransfer
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<branchtransfers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Branchtransfer
19
15
20
=cut
16
=cut
21
17
Lines 33-39 __PACKAGE__->table("branchtransfers"); Link Here
33
=head2 datesent
29
=head2 datesent
34
30
35
  data_type: 'datetime'
31
  data_type: 'datetime'
36
  datetime_undef_if_invalid: 1
37
  is_nullable: 1
32
  is_nullable: 1
38
33
39
=head2 frombranch
34
=head2 frombranch
Lines 47-53 __PACKAGE__->table("branchtransfers"); Link Here
47
=head2 datearrived
42
=head2 datearrived
48
43
49
  data_type: 'datetime'
44
  data_type: 'datetime'
50
  datetime_undef_if_invalid: 1
51
  is_nullable: 1
45
  is_nullable: 1
52
46
53
=head2 tobranch
47
=head2 tobranch
Lines 74-84 __PACKAGE__->add_columns( Link Here
74
    is_nullable    => 0,
68
    is_nullable    => 0,
75
  },
69
  },
76
  "datesent",
70
  "datesent",
77
  {
71
  { data_type => "datetime", is_nullable => 1 },
78
    data_type => "datetime",
79
    datetime_undef_if_invalid => 1,
80
    is_nullable => 1,
81
  },
82
  "frombranch",
72
  "frombranch",
83
  {
73
  {
84
    data_type => "varchar",
74
    data_type => "varchar",
Lines 88-98 __PACKAGE__->add_columns( Link Here
88
    size => 10,
78
    size => 10,
89
  },
79
  },
90
  "datearrived",
80
  "datearrived",
91
  {
81
  { data_type => "datetime", is_nullable => 1 },
92
    data_type => "datetime",
93
    datetime_undef_if_invalid => 1,
94
    is_nullable => 1,
95
  },
96
  "tobranch",
82
  "tobranch",
97
  {
83
  {
98
    data_type => "varchar",
84
    data_type => "varchar",
Lines 119-160 __PACKAGE__->belongs_to( Link Here
119
  "frombranch",
105
  "frombranch",
120
  "Koha::Schema::Result::Branch",
106
  "Koha::Schema::Result::Branch",
121
  { branchcode => "frombranch" },
107
  { branchcode => "frombranch" },
122
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
108
  { on_delete => "CASCADE", on_update => "CASCADE" },
123
);
109
);
124
110
125
=head2 itemnumber
111
=head2 tobranch
126
112
127
Type: belongs_to
113
Type: belongs_to
128
114
129
Related object: L<Koha::Schema::Result::Item>
115
Related object: L<Koha::Schema::Result::Branch>
130
116
131
=cut
117
=cut
132
118
133
__PACKAGE__->belongs_to(
119
__PACKAGE__->belongs_to(
134
  "itemnumber",
120
  "tobranch",
135
  "Koha::Schema::Result::Item",
121
  "Koha::Schema::Result::Branch",
136
  { itemnumber => "itemnumber" },
122
  { branchcode => "tobranch" },
137
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
123
  { on_delete => "CASCADE", on_update => "CASCADE" },
138
);
124
);
139
125
140
=head2 tobranch
126
=head2 itemnumber
141
127
142
Type: belongs_to
128
Type: belongs_to
143
129
144
Related object: L<Koha::Schema::Result::Branch>
130
Related object: L<Koha::Schema::Result::Item>
145
131
146
=cut
132
=cut
147
133
148
__PACKAGE__->belongs_to(
134
__PACKAGE__->belongs_to(
149
  "tobranch",
135
  "itemnumber",
150
  "Koha::Schema::Result::Branch",
136
  "Koha::Schema::Result::Item",
151
  { branchcode => "tobranch" },
137
  { itemnumber => "itemnumber" },
152
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
138
  { on_delete => "CASCADE", on_update => "CASCADE" },
153
);
139
);
154
140
155
141
156
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
142
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
157
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NPbH+5o2BVPj8yeoUqEavw
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XQitmLgI/r7W3Hxb04QzFg
158
144
159
145
160
# You can replace this text with custom content, and it will be preserved on regeneration
146
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Browser.pm (-10 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Browser;
1
package Koha::Schema::Result::Browser;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Browser
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<browser>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Browser
19
15
20
=cut
16
=cut
21
17
Lines 66-73 __PACKAGE__->add_columns( Link Here
66
);
62
);
67
63
68
64
69
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
65
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eMoAXr+/JrrwEjJ3dRRwoA
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F9KZKkx8J7J9T3wNPoY40g
71
67
72
68
73
# You can replace this text with custom content, and it will be preserved on regeneration
69
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CategoriesBranch.pm (-32 / +18 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CategoriesBranch;
1
package Koha::Schema::Result::CategoriesBranch;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CategoriesBranch
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<categories_branches>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CategoriesBranch
19
15
20
=cut
16
=cut
21
17
Lines 48-96 __PACKAGE__->add_columns( Link Here
48
44
49
=head1 RELATIONS
45
=head1 RELATIONS
50
46
51
=head2 branchcode
47
=head2 categorycode
52
48
53
Type: belongs_to
49
Type: belongs_to
54
50
55
Related object: L<Koha::Schema::Result::Branch>
51
Related object: L<Koha::Schema::Result::Category>
56
52
57
=cut
53
=cut
58
54
59
__PACKAGE__->belongs_to(
55
__PACKAGE__->belongs_to(
60
  "branchcode",
56
  "categorycode",
61
  "Koha::Schema::Result::Branch",
57
  "Koha::Schema::Result::Category",
62
  { branchcode => "branchcode" },
58
  { categorycode => "categorycode" },
63
  {
59
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
64
    is_deferrable => 1,
65
    join_type     => "LEFT",
66
    on_delete     => "CASCADE",
67
    on_update     => "CASCADE",
68
  },
69
);
60
);
70
61
71
=head2 categorycode
62
=head2 branchcode
72
63
73
Type: belongs_to
64
Type: belongs_to
74
65
75
Related object: L<Koha::Schema::Result::Category>
66
Related object: L<Koha::Schema::Result::Branch>
76
67
77
=cut
68
=cut
78
69
79
__PACKAGE__->belongs_to(
70
__PACKAGE__->belongs_to(
80
  "categorycode",
71
  "branchcode",
81
  "Koha::Schema::Result::Category",
72
  "Koha::Schema::Result::Branch",
82
  { categorycode => "categorycode" },
73
  { branchcode => "branchcode" },
83
  {
74
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
84
    is_deferrable => 1,
85
    join_type     => "LEFT",
86
    on_delete     => "CASCADE",
87
    on_update     => "CASCADE",
88
  },
89
);
75
);
90
76
91
77
92
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
78
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9fXKFDUQsOx+uqF+slRhSw
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vJ43XeGNm5uM3IheKs1IbA
94
80
95
81
96
# You can replace this text with custom content, and it will be preserved on regeneration
82
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Category.pm (-23 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Category;
1
package Koha::Schema::Result::Category;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Category
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<categories>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Category
19
15
20
=cut
16
=cut
21
17
Lines 43-49 __PACKAGE__->table("categories"); Link Here
43
=head2 enrolmentperioddate
39
=head2 enrolmentperioddate
44
40
45
  data_type: 'date'
41
  data_type: 'date'
46
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
42
  is_nullable: 1
48
43
49
=head2 upperagelimit
44
=head2 upperagelimit
Lines 112-118 __PACKAGE__->add_columns( Link Here
112
  "enrolmentperiod",
107
  "enrolmentperiod",
113
  { data_type => "smallint", is_nullable => 1 },
108
  { data_type => "smallint", is_nullable => 1 },
114
  "enrolmentperioddate",
109
  "enrolmentperioddate",
115
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
110
  { data_type => "date", is_nullable => 1 },
116
  "upperagelimit",
111
  "upperagelimit",
117
  { data_type => "smallint", is_nullable => 1 },
112
  { data_type => "smallint", is_nullable => 1 },
118
  "dateofbirthrequired",
113
  "dateofbirthrequired",
Lines 134-150 __PACKAGE__->add_columns( Link Here
134
  "category_type",
129
  "category_type",
135
  { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
130
  { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
136
);
131
);
137
138
=head1 PRIMARY KEY
139
140
=over 4
141
142
=item * L</categorycode>
143
144
=back
145
146
=cut
147
148
__PACKAGE__->set_primary_key("categorycode");
132
__PACKAGE__->set_primary_key("categorycode");
149
133
150
=head1 RELATIONS
134
=head1 RELATIONS
Lines 225-232 __PACKAGE__->might_have( Link Here
225
);
209
);
226
210
227
211
228
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
212
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
229
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lert5/PnaztNZ9rmoGc2Gg
213
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QNXqVu/EwamorUjwzGyeEQ
230
214
231
215
232
# You can replace this text with custom content, and it will be preserved on regeneration
216
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/City.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::City;
1
package Koha::Schema::Result::City;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::City
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<cities>
11
12
=head1 NAME
13
14
Koha::Schema::Result::City
19
15
20
=cut
16
=cut
21
17
Lines 68-89 __PACKAGE__->add_columns( Link Here
68
  "city_zipcode",
64
  "city_zipcode",
69
  { data_type => "varchar", is_nullable => 1, size => 20 },
65
  { data_type => "varchar", is_nullable => 1, size => 20 },
70
);
66
);
71
72
=head1 PRIMARY KEY
73
74
=over 4
75
76
=item * L</cityid>
77
78
=back
79
80
=cut
81
82
__PACKAGE__->set_primary_key("cityid");
67
__PACKAGE__->set_primary_key("cityid");
83
68
84
69
85
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
70
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zEjfS65sp13yF7dH8/ojZQ
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tyMf7X1jNBInGrSHuoCbfw
87
72
88
73
89
# You can replace this text with custom content, and it will be preserved on regeneration
74
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ClassSortRule.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ClassSortRule;
1
package Koha::Schema::Result::ClassSortRule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ClassSortRule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<class_sort_rules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ClassSortRule
19
15
20
=cut
16
=cut
21
17
Lines 52-68 __PACKAGE__->add_columns( Link Here
52
  "sort_routine",
48
  "sort_routine",
53
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
49
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
54
);
50
);
55
56
=head1 PRIMARY KEY
57
58
=over 4
59
60
=item * L</class_sort_rule>
61
62
=back
63
64
=cut
65
66
__PACKAGE__->set_primary_key("class_sort_rule");
51
__PACKAGE__->set_primary_key("class_sort_rule");
67
52
68
=head1 RELATIONS
53
=head1 RELATIONS
Lines 83-90 __PACKAGE__->has_many( Link Here
83
);
68
);
84
69
85
70
86
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
71
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xvTm4GLMb6N4qHQEv8EhSw
72
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/rw7LlI3ti5wCJA7AY1EHA
88
73
89
74
90
# You can replace this text with custom content, and it will be preserved on regeneration
75
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ClassSource.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ClassSource;
1
package Koha::Schema::Result::ClassSource;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ClassSource
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<class_sources>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ClassSource
19
15
20
=cut
16
=cut
21
17
Lines 67-83 __PACKAGE__->add_columns( Link Here
67
    size => 10,
63
    size => 10,
68
  },
64
  },
69
);
65
);
70
71
=head1 PRIMARY KEY
72
73
=over 4
74
75
=item * L</cn_source>
76
77
=back
78
79
=cut
80
81
__PACKAGE__->set_primary_key("cn_source");
66
__PACKAGE__->set_primary_key("cn_source");
82
67
83
=head1 RELATIONS
68
=head1 RELATIONS
Lines 94-105 __PACKAGE__->belongs_to( Link Here
94
  "class_sort_rule",
79
  "class_sort_rule",
95
  "Koha::Schema::Result::ClassSortRule",
80
  "Koha::Schema::Result::ClassSortRule",
96
  { class_sort_rule => "class_sort_rule" },
81
  { class_sort_rule => "class_sort_rule" },
97
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
82
  { on_delete => "CASCADE", on_update => "CASCADE" },
98
);
83
);
99
84
100
85
101
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OPkfouKUejU6oCgy58yt6Q
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PjU4+iPhalcPDlFW7PdjKg
103
88
104
89
105
# You can replace this text with custom content, and it will be preserved on regeneration
90
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Collection.pm (-23 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Collection;
1
package Koha::Schema::Result::Collection;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Collection
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<collections>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Collection
19
15
20
=cut
16
=cut
21
17
Lines 47-54 __PACKAGE__->table("collections"); Link Here
47
  is_nullable: 1
43
  is_nullable: 1
48
  size: 4
44
  size: 4
49
45
50
branchcode for branch where item should be held.
51
52
=cut
46
=cut
53
47
54
__PACKAGE__->add_columns(
48
__PACKAGE__->add_columns(
Lines 61-82 __PACKAGE__->add_columns( Link Here
61
  "colbranchcode",
55
  "colbranchcode",
62
  { data_type => "varchar", is_nullable => 1, size => 4 },
56
  { data_type => "varchar", is_nullable => 1, size => 4 },
63
);
57
);
64
65
=head1 PRIMARY KEY
66
67
=over 4
68
69
=item * L</colid>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("colid");
58
__PACKAGE__->set_primary_key("colid");
76
59
77
60
78
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
61
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KNJIC+I4OdfXBAPM8zOB4A
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T4i5yX4nUrf/jXg9FNX57Q
80
63
81
64
82
# You can replace this text with custom content, and it will be preserved on regeneration
65
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CollectionTracking.pm (-25 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CollectionTracking;
1
package Koha::Schema::Result::CollectionTracking;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CollectionTracking
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<collections_tracking>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CollectionTracking
19
15
20
=cut
16
=cut
21
17
Lines 35-50 __PACKAGE__->table("collections_tracking"); Link Here
35
  default_value: 0
31
  default_value: 0
36
  is_nullable: 0
32
  is_nullable: 0
37
33
38
collections.colId
39
40
=head2 itemnumber
34
=head2 itemnumber
41
35
42
  data_type: 'integer'
36
  data_type: 'integer'
43
  default_value: 0
37
  default_value: 0
44
  is_nullable: 0
38
  is_nullable: 0
45
39
46
items.itemnumber
47
48
=cut
40
=cut
49
41
50
__PACKAGE__->add_columns(
42
__PACKAGE__->add_columns(
Lines 55-76 __PACKAGE__->add_columns( Link Here
55
  "itemnumber",
47
  "itemnumber",
56
  { data_type => "integer", default_value => 0, is_nullable => 0 },
48
  { data_type => "integer", default_value => 0, is_nullable => 0 },
57
);
49
);
58
59
=head1 PRIMARY KEY
60
61
=over 4
62
63
=item * L</ctid>
64
65
=back
66
67
=cut
68
69
__PACKAGE__->set_primary_key("ctid");
50
__PACKAGE__->set_primary_key("ctid");
70
51
71
52
72
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
53
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
73
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:izGaZGUJvwrRTQOCotopUg
54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8rFlADk9TT1snPmfWhxHOQ
74
55
75
56
76
# You can replace this text with custom content, and it will be preserved on regeneration
57
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Course.pm (-35 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Course;
1
package Koha::Schema::Result::Course;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Course
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<courses>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Course
19
15
20
=cut
16
=cut
21
17
Lines 85-91 __PACKAGE__->table("courses"); Link Here
85
=head2 timestamp
81
=head2 timestamp
86
82
87
  data_type: 'timestamp'
83
  data_type: 'timestamp'
88
  datetime_undef_if_invalid: 1
89
  default_value: current_timestamp
84
  default_value: current_timestamp
90
  is_nullable: 0
85
  is_nullable: 0
91
86
Lines 119-141 __PACKAGE__->add_columns( Link Here
119
  },
114
  },
120
  "timestamp",
115
  "timestamp",
121
  {
116
  {
122
    data_type => "timestamp",
117
    data_type     => "timestamp",
123
    datetime_undef_if_invalid => 1,
124
    default_value => \"current_timestamp",
118
    default_value => \"current_timestamp",
125
    is_nullable => 0,
119
    is_nullable   => 0,
126
  },
120
  },
127
);
121
);
128
129
=head1 PRIMARY KEY
130
131
=over 4
132
133
=item * L</course_id>
134
135
=back
136
137
=cut
138
139
__PACKAGE__->set_primary_key("course_id");
122
__PACKAGE__->set_primary_key("course_id");
140
123
141
=head1 RELATIONS
124
=head1 RELATIONS
Lines 170-188 __PACKAGE__->has_many( Link Here
170
  { cascade_copy => 0, cascade_delete => 0 },
153
  { cascade_copy => 0, cascade_delete => 0 },
171
);
154
);
172
155
173
=head2 borrowernumbers
174
175
Type: many_to_many
176
177
Composing rels: L</course_instructors> -> borrowernumber
178
179
=cut
180
181
__PACKAGE__->many_to_many("borrowernumbers", "course_instructors", "borrowernumber");
182
183
156
184
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
157
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
185
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:crKCFQ80qo2p885ebiBfnw
158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eQ9C7EgRkPcGhO/32fmbgg
186
159
187
160
188
# You can replace this text with custom content, and it will be preserved on regeneration
161
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CourseInstructor.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CourseInstructor;
1
package Koha::Schema::Result::CourseInstructor;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CourseInstructor
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<course_instructors>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CourseInstructor
19
15
20
=cut
16
=cut
21
17
Lines 43-61 __PACKAGE__->add_columns( Link Here
43
  "borrowernumber",
39
  "borrowernumber",
44
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
45
);
41
);
46
47
=head1 PRIMARY KEY
48
49
=over 4
50
51
=item * L</course_id>
52
53
=item * L</borrowernumber>
54
55
=back
56
57
=cut
58
59
__PACKAGE__->set_primary_key("course_id", "borrowernumber");
42
__PACKAGE__->set_primary_key("course_id", "borrowernumber");
60
43
61
=head1 RELATIONS
44
=head1 RELATIONS
Lines 72-78 __PACKAGE__->belongs_to( Link Here
72
  "borrowernumber",
55
  "borrowernumber",
73
  "Koha::Schema::Result::Borrower",
56
  "Koha::Schema::Result::Borrower",
74
  { borrowernumber => "borrowernumber" },
57
  { borrowernumber => "borrowernumber" },
75
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
58
  { on_delete => "CASCADE", on_update => "CASCADE" },
76
);
59
);
77
60
78
=head2 course
61
=head2 course
Lines 87-98 __PACKAGE__->belongs_to( Link Here
87
  "course",
70
  "course",
88
  "Koha::Schema::Result::Course",
71
  "Koha::Schema::Result::Course",
89
  { course_id => "course_id" },
72
  { course_id => "course_id" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
91
);
74
);
92
75
93
76
94
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dIemqF/uRWLNN4IMCHZxRA
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U3VpKzGFC9YzwhTWuo3oWA
96
79
97
80
98
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CourseItem.pm (-55 / +20 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CourseItem;
1
package Koha::Schema::Result::CourseItem;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CourseItem
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<course_items>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CourseItem
19
15
20
=cut
16
=cut
21
17
Lines 70-76 __PACKAGE__->table("course_items"); Link Here
70
=head2 timestamp
66
=head2 timestamp
71
67
72
  data_type: 'timestamp'
68
  data_type: 'timestamp'
73
  datetime_undef_if_invalid: 1
74
  default_value: current_timestamp
69
  default_value: current_timestamp
75
  is_nullable: 0
70
  is_nullable: 0
76
71
Lines 98-176 __PACKAGE__->add_columns( Link Here
98
  },
93
  },
99
  "timestamp",
94
  "timestamp",
100
  {
95
  {
101
    data_type => "timestamp",
96
    data_type     => "timestamp",
102
    datetime_undef_if_invalid => 1,
103
    default_value => \"current_timestamp",
97
    default_value => \"current_timestamp",
104
    is_nullable => 0,
98
    is_nullable   => 0,
105
  },
99
  },
106
);
100
);
107
108
=head1 PRIMARY KEY
109
110
=over 4
111
112
=item * L</ci_id>
113
114
=back
115
116
=cut
117
118
__PACKAGE__->set_primary_key("ci_id");
101
__PACKAGE__->set_primary_key("ci_id");
119
120
=head1 UNIQUE CONSTRAINTS
121
122
=head2 C<itemnumber>
123
124
=over 4
125
126
=item * L</itemnumber>
127
128
=back
129
130
=cut
131
132
__PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]);
102
__PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]);
133
103
134
=head1 RELATIONS
104
=head1 RELATIONS
135
105
136
=head2 holdingbranch
106
=head2 itemnumber
137
107
138
Type: belongs_to
108
Type: belongs_to
139
109
140
Related object: L<Koha::Schema::Result::Branch>
110
Related object: L<Koha::Schema::Result::Item>
141
111
142
=cut
112
=cut
143
113
144
__PACKAGE__->belongs_to(
114
__PACKAGE__->belongs_to(
145
  "holdingbranch",
115
  "itemnumber",
146
  "Koha::Schema::Result::Branch",
116
  "Koha::Schema::Result::Item",
147
  { branchcode => "holdingbranch" },
117
  { itemnumber => "itemnumber" },
148
  {
118
  { on_delete => "CASCADE", on_update => "CASCADE" },
149
    is_deferrable => 1,
150
    join_type     => "LEFT",
151
    on_delete     => "CASCADE",
152
    on_update     => "CASCADE",
153
  },
154
);
119
);
155
120
156
=head2 itemnumber
121
=head2 holdingbranch
157
122
158
Type: belongs_to
123
Type: belongs_to
159
124
160
Related object: L<Koha::Schema::Result::Item>
125
Related object: L<Koha::Schema::Result::Branch>
161
126
162
=cut
127
=cut
163
128
164
__PACKAGE__->belongs_to(
129
__PACKAGE__->belongs_to(
165
  "itemnumber",
130
  "holdingbranch",
166
  "Koha::Schema::Result::Item",
131
  "Koha::Schema::Result::Branch",
167
  { itemnumber => "itemnumber" },
132
  { branchcode => "holdingbranch" },
168
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
133
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
169
);
134
);
170
135
171
136
172
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
137
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iVWZfUWcPfrLdLdvjyvbow
138
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hRFh/URYYxT1splXwGNtFQ
174
139
175
140
176
# You can replace this text with custom content, and it will be preserved on regeneration
141
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CourseReserve.pm (-41 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CourseReserve;
1
package Koha::Schema::Result::CourseReserve;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CourseReserve
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<course_reserves>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CourseReserve
19
15
20
=cut
16
=cut
21
17
Lines 53-59 __PACKAGE__->table("course_reserves"); Link Here
53
=head2 timestamp
49
=head2 timestamp
54
50
55
  data_type: 'timestamp'
51
  data_type: 'timestamp'
56
  datetime_undef_if_invalid: 1
57
  default_value: current_timestamp
52
  default_value: current_timestamp
58
  is_nullable: 0
53
  is_nullable: 0
59
54
Lines 72-110 __PACKAGE__->add_columns( Link Here
72
  { data_type => "mediumtext", is_nullable => 1 },
67
  { data_type => "mediumtext", is_nullable => 1 },
73
  "timestamp",
68
  "timestamp",
74
  {
69
  {
75
    data_type => "timestamp",
70
    data_type     => "timestamp",
76
    datetime_undef_if_invalid => 1,
77
    default_value => \"current_timestamp",
71
    default_value => \"current_timestamp",
78
    is_nullable => 0,
72
    is_nullable   => 0,
79
  },
73
  },
80
);
74
);
81
82
=head1 PRIMARY KEY
83
84
=over 4
85
86
=item * L</cr_id>
87
88
=back
89
90
=cut
91
92
__PACKAGE__->set_primary_key("cr_id");
75
__PACKAGE__->set_primary_key("cr_id");
93
94
=head1 UNIQUE CONSTRAINTS
95
96
=head2 C<pseudo_key>
97
98
=over 4
99
100
=item * L</course_id>
101
102
=item * L</ci_id>
103
104
=back
105
106
=cut
107
108
__PACKAGE__->add_unique_constraint("pseudo_key", ["course_id", "ci_id"]);
76
__PACKAGE__->add_unique_constraint("pseudo_key", ["course_id", "ci_id"]);
109
77
110
=head1 RELATIONS
78
=head1 RELATIONS
Lines 121-132 __PACKAGE__->belongs_to( Link Here
121
  "course",
89
  "course",
122
  "Koha::Schema::Result::Course",
90
  "Koha::Schema::Result::Course",
123
  { course_id => "course_id" },
91
  { course_id => "course_id" },
124
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92
  { on_delete => "CASCADE", on_update => "CASCADE" },
125
);
93
);
126
94
127
95
128
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
96
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9KuuUyFReuw+PAlLW84yXQ
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6SjSSX2huUywaFk17VNiPw
130
98
131
99
132
# You can replace this text with custom content, and it will be preserved on regeneration
100
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CreatorBatch.pm (-38 / +11 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CreatorBatch;
1
package Koha::Schema::Result::CreatorBatch;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CreatorBatch
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<creator_batches>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CreatorBatch
19
15
20
=cut
16
=cut
21
17
Lines 50-56 __PACKAGE__->table("creator_batches"); Link Here
50
=head2 timestamp
46
=head2 timestamp
51
47
52
  data_type: 'timestamp'
48
  data_type: 'timestamp'
53
  datetime_undef_if_invalid: 1
54
  default_value: current_timestamp
49
  default_value: current_timestamp
55
  is_nullable: 0
50
  is_nullable: 0
56
51
Lines 82-91 __PACKAGE__->add_columns( Link Here
82
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
77
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
83
  "timestamp",
78
  "timestamp",
84
  {
79
  {
85
    data_type => "timestamp",
80
    data_type     => "timestamp",
86
    datetime_undef_if_invalid => 1,
87
    default_value => \"current_timestamp",
81
    default_value => \"current_timestamp",
88
    is_nullable => 0,
82
    is_nullable   => 0,
89
  },
83
  },
90
  "branch_code",
84
  "branch_code",
91
  {
85
  {
Lines 103-119 __PACKAGE__->add_columns( Link Here
103
    size => 15,
97
    size => 15,
104
  },
98
  },
105
);
99
);
106
107
=head1 PRIMARY KEY
108
109
=over 4
110
111
=item * L</label_id>
112
113
=back
114
115
=cut
116
117
__PACKAGE__->set_primary_key("label_id");
100
__PACKAGE__->set_primary_key("label_id");
118
101
119
=head1 RELATIONS
102
=head1 RELATIONS
Lines 130-141 __PACKAGE__->belongs_to( Link Here
130
  "borrower_number",
113
  "borrower_number",
131
  "Koha::Schema::Result::Borrower",
114
  "Koha::Schema::Result::Borrower",
132
  { borrowernumber => "borrower_number" },
115
  { borrowernumber => "borrower_number" },
133
  {
116
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
134
    is_deferrable => 1,
135
    join_type     => "LEFT",
136
    on_delete     => "CASCADE",
137
    on_update     => "CASCADE",
138
  },
139
);
117
);
140
118
141
=head2 branch_code
119
=head2 branch_code
Lines 150-156 __PACKAGE__->belongs_to( Link Here
150
  "branch_code",
128
  "branch_code",
151
  "Koha::Schema::Result::Branch",
129
  "Koha::Schema::Result::Branch",
152
  { branchcode => "branch_code" },
130
  { branchcode => "branch_code" },
153
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
131
  { on_delete => "CASCADE", on_update => "CASCADE" },
154
);
132
);
155
133
156
=head2 item_number
134
=head2 item_number
Lines 165-181 __PACKAGE__->belongs_to( Link Here
165
  "item_number",
143
  "item_number",
166
  "Koha::Schema::Result::Item",
144
  "Koha::Schema::Result::Item",
167
  { itemnumber => "item_number" },
145
  { itemnumber => "item_number" },
168
  {
146
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
169
    is_deferrable => 1,
170
    join_type     => "LEFT",
171
    on_delete     => "CASCADE",
172
    on_update     => "CASCADE",
173
  },
174
);
147
);
175
148
176
149
177
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
150
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
178
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:w5Nfrm8a8ajsC0bLBACaWg
151
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aqixTsHht+4p/5RurH0OFA
179
152
180
153
181
# You can replace this text with custom content, and it will be preserved on regeneration
154
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CreatorImage.pm (-34 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CreatorImage;
1
package Koha::Schema::Result::CreatorImage;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CreatorImage
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<creator_images>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CreatorImage
19
15
20
=cut
16
=cut
21
17
Lines 56-91 __PACKAGE__->add_columns( Link Here
56
    size => 20,
52
    size => 20,
57
  },
53
  },
58
);
54
);
59
60
=head1 PRIMARY KEY
61
62
=over 4
63
64
=item * L</image_id>
65
66
=back
67
68
=cut
69
70
__PACKAGE__->set_primary_key("image_id");
55
__PACKAGE__->set_primary_key("image_id");
71
72
=head1 UNIQUE CONSTRAINTS
73
74
=head2 C<image_name_index>
75
76
=over 4
77
78
=item * L</image_name>
79
80
=back
81
82
=cut
83
84
__PACKAGE__->add_unique_constraint("image_name_index", ["image_name"]);
56
__PACKAGE__->add_unique_constraint("image_name_index", ["image_name"]);
85
57
86
58
87
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
59
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:veljpS1CT3wfNDilccroGg
60
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2Dsr9dITJY0P8n5dpnEe9g
89
61
90
62
91
# You can replace this text with custom content, and it will be preserved on regeneration
63
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CreatorLayout.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CreatorLayout;
1
package Koha::Schema::Result::CreatorLayout;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CreatorLayout
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<creator_layouts>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CreatorLayout
19
15
20
=cut
16
=cut
21
17
Lines 166-187 __PACKAGE__->add_columns( Link Here
166
    size => 15,
162
    size => 15,
167
  },
163
  },
168
);
164
);
169
170
=head1 PRIMARY KEY
171
172
=over 4
173
174
=item * L</layout_id>
175
176
=back
177
178
=cut
179
180
__PACKAGE__->set_primary_key("layout_id");
165
__PACKAGE__->set_primary_key("layout_id");
181
166
182
167
183
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
168
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MNE/WVsvlJXO5IHiM64yPQ
169
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eMz2GIC9Uzox9rsPgRTBJw
185
170
186
171
187
# You can replace this text with custom content, and it will be preserved on regeneration
172
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CreatorTemplate.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::CreatorTemplate;
1
package Koha::Schema::Result::CreatorTemplate;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::CreatorTemplate
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<creator_templates>
11
12
=head1 NAME
13
14
Koha::Schema::Result::CreatorTemplate
19
15
20
=cut
16
=cut
21
17
Lines 189-210 __PACKAGE__->add_columns( Link Here
189
    size => 15,
185
    size => 15,
190
  },
186
  },
191
);
187
);
192
193
=head1 PRIMARY KEY
194
195
=over 4
196
197
=item * L</template_id>
198
199
=back
200
201
=cut
202
203
__PACKAGE__->set_primary_key("template_id");
188
__PACKAGE__->set_primary_key("template_id");
204
189
205
190
206
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
191
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
207
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2NGDs68pqskZaoiyURPIGg
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/LO4D5MbycdlsoNENhVZ+w
208
193
209
194
210
# 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
(-)a/Koha/Schema/Result/Currency.pm (-31 / +14 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Currency;
1
package Koha::Schema::Result::Currency;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Currency
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<currency>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Currency
19
15
20
=cut
16
=cut
21
17
Lines 39-45 __PACKAGE__->table("currency"); Link Here
39
=head2 timestamp
35
=head2 timestamp
40
36
41
  data_type: 'timestamp'
37
  data_type: 'timestamp'
42
  datetime_undef_if_invalid: 1
43
  default_value: current_timestamp
38
  default_value: current_timestamp
44
  is_nullable: 0
39
  is_nullable: 0
45
40
Lines 63-94 __PACKAGE__->add_columns( Link Here
63
  { data_type => "varchar", is_nullable => 1, size => 5 },
58
  { data_type => "varchar", is_nullable => 1, size => 5 },
64
  "timestamp",
59
  "timestamp",
65
  {
60
  {
66
    data_type => "timestamp",
61
    data_type     => "timestamp",
67
    datetime_undef_if_invalid => 1,
68
    default_value => \"current_timestamp",
62
    default_value => \"current_timestamp",
69
    is_nullable => 0,
63
    is_nullable   => 0,
70
  },
64
  },
71
  "rate",
65
  "rate",
72
  { data_type => "float", is_nullable => 1, size => [15, 5] },
66
  { data_type => "float", is_nullable => 1, size => [15, 5] },
73
  "active",
67
  "active",
74
  { data_type => "tinyint", is_nullable => 1 },
68
  { data_type => "tinyint", is_nullable => 1 },
75
);
69
);
76
77
=head1 PRIMARY KEY
78
79
=over 4
80
81
=item * L</currency>
82
83
=back
84
85
=cut
86
87
__PACKAGE__->set_primary_key("currency");
70
__PACKAGE__->set_primary_key("currency");
88
71
89
=head1 RELATIONS
72
=head1 RELATIONS
90
73
91
=head2 aqbooksellers_invoiceprices
74
=head2 aqbooksellers_listprices
92
75
93
Type: has_many
76
Type: has_many
94
77
Lines 97-109 Related object: L<Koha::Schema::Result::Aqbookseller> Link Here
97
=cut
80
=cut
98
81
99
__PACKAGE__->has_many(
82
__PACKAGE__->has_many(
100
  "aqbooksellers_invoiceprices",
83
  "aqbooksellers_listprices",
101
  "Koha::Schema::Result::Aqbookseller",
84
  "Koha::Schema::Result::Aqbookseller",
102
  { "foreign.invoiceprice" => "self.currency" },
85
  { "foreign.listprice" => "self.currency" },
103
  { cascade_copy => 0, cascade_delete => 0 },
86
  { cascade_copy => 0, cascade_delete => 0 },
104
);
87
);
105
88
106
=head2 aqbooksellers_listprices
89
=head2 aqbooksellers_invoiceprices
107
90
108
Type: has_many
91
Type: has_many
109
92
Lines 112-126 Related object: L<Koha::Schema::Result::Aqbookseller> Link Here
112
=cut
95
=cut
113
96
114
__PACKAGE__->has_many(
97
__PACKAGE__->has_many(
115
  "aqbooksellers_listprices",
98
  "aqbooksellers_invoiceprices",
116
  "Koha::Schema::Result::Aqbookseller",
99
  "Koha::Schema::Result::Aqbookseller",
117
  { "foreign.listprice" => "self.currency" },
100
  { "foreign.invoiceprice" => "self.currency" },
118
  { cascade_copy => 0, cascade_delete => 0 },
101
  { cascade_copy => 0, cascade_delete => 0 },
119
);
102
);
120
103
121
104
122
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
105
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
123
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1fpLJHtP0bseXVfytxii5Q
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AMEuM9G+j0dVq6Hf0KRVLw
124
107
125
108
126
# You can replace this text with custom content, and it will be preserved on regeneration
109
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DefaultBorrowerCircRule.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultBorrowerCircRule;
1
package Koha::Schema::Result::DefaultBorrowerCircRule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::DefaultBorrowerCircRule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<default_borrower_circ_rules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::DefaultBorrowerCircRule
19
15
20
=cut
16
=cut
21
17
Lines 43-59 __PACKAGE__->add_columns( Link Here
43
  "maxissueqty",
39
  "maxissueqty",
44
  { data_type => "integer", is_nullable => 1 },
40
  { data_type => "integer", is_nullable => 1 },
45
);
41
);
46
47
=head1 PRIMARY KEY
48
49
=over 4
50
51
=item * L</categorycode>
52
53
=back
54
55
=cut
56
57
__PACKAGE__->set_primary_key("categorycode");
42
__PACKAGE__->set_primary_key("categorycode");
58
43
59
=head1 RELATIONS
44
=head1 RELATIONS
Lines 70-81 __PACKAGE__->belongs_to( Link Here
70
  "categorycode",
55
  "categorycode",
71
  "Koha::Schema::Result::Category",
56
  "Koha::Schema::Result::Category",
72
  { categorycode => "categorycode" },
57
  { categorycode => "categorycode" },
73
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
58
  { on_delete => "CASCADE", on_update => "CASCADE" },
74
);
59
);
75
60
76
61
77
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
62
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bZVuSuLu0IxPcJMaUUjbSw
63
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GriiXWrKJmfukSMz568auw
79
64
80
65
81
# You can replace this text with custom content, and it will be preserved on regeneration
66
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DefaultBranchCircRule.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultBranchCircRule;
1
package Koha::Schema::Result::DefaultBranchCircRule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::DefaultBranchCircRule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<default_branch_circ_rules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::DefaultBranchCircRule
19
15
20
=cut
16
=cut
21
17
Lines 58-74 __PACKAGE__->add_columns( Link Here
58
  "returnbranch",
54
  "returnbranch",
59
  { data_type => "varchar", is_nullable => 1, size => 15 },
55
  { data_type => "varchar", is_nullable => 1, size => 15 },
60
);
56
);
61
62
=head1 PRIMARY KEY
63
64
=over 4
65
66
=item * L</branchcode>
67
68
=back
69
70
=cut
71
72
__PACKAGE__->set_primary_key("branchcode");
57
__PACKAGE__->set_primary_key("branchcode");
73
58
74
=head1 RELATIONS
59
=head1 RELATIONS
Lines 85-96 __PACKAGE__->belongs_to( Link Here
85
  "branchcode",
70
  "branchcode",
86
  "Koha::Schema::Result::Branch",
71
  "Koha::Schema::Result::Branch",
87
  { branchcode => "branchcode" },
72
  { branchcode => "branchcode" },
88
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
89
);
74
);
90
75
91
76
92
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uw1Y82CgbAY8ndLOucN70g
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:edogwzFuNianNzfsv4cPjw
94
79
95
80
96
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DefaultBranchItemRule.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultBranchItemRule;
1
package Koha::Schema::Result::DefaultBranchItemRule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::DefaultBranchItemRule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<default_branch_item_rules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::DefaultBranchItemRule
19
15
20
=cut
16
=cut
21
17
Lines 51-67 __PACKAGE__->add_columns( Link Here
51
  "returnbranch",
47
  "returnbranch",
52
  { data_type => "varchar", is_nullable => 1, size => 15 },
48
  { data_type => "varchar", is_nullable => 1, size => 15 },
53
);
49
);
54
55
=head1 PRIMARY KEY
56
57
=over 4
58
59
=item * L</itemtype>
60
61
=back
62
63
=cut
64
65
__PACKAGE__->set_primary_key("itemtype");
50
__PACKAGE__->set_primary_key("itemtype");
66
51
67
=head1 RELATIONS
52
=head1 RELATIONS
Lines 78-89 __PACKAGE__->belongs_to( Link Here
78
  "itemtype",
63
  "itemtype",
79
  "Koha::Schema::Result::Itemtype",
64
  "Koha::Schema::Result::Itemtype",
80
  { itemtype => "itemtype" },
65
  { itemtype => "itemtype" },
81
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
66
  { on_delete => "CASCADE", on_update => "CASCADE" },
82
);
67
);
83
68
84
69
85
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
70
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Mm4EAx13qTr5S02B9dt01g
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2vwyB6YgxSjhjtJJD8kA2A
87
72
88
73
89
# You can replace this text with custom content, and it will be preserved on regeneration
74
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DefaultCircRule.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultCircRule;
1
package Koha::Schema::Result::DefaultCircRule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::DefaultCircRule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<default_circ_rules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::DefaultCircRule
19
15
20
=cut
16
=cut
21
17
Lines 63-84 __PACKAGE__->add_columns( Link Here
63
  "returnbranch",
59
  "returnbranch",
64
  { data_type => "varchar", is_nullable => 1, size => 15 },
60
  { data_type => "varchar", is_nullable => 1, size => 15 },
65
);
61
);
66
67
=head1 PRIMARY KEY
68
69
=over 4
70
71
=item * L</singleton>
72
73
=back
74
75
=cut
76
77
__PACKAGE__->set_primary_key("singleton");
62
__PACKAGE__->set_primary_key("singleton");
78
63
79
64
80
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
65
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
81
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I4hY1uJ+wDoWPIiZj5amVg
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O5jD6cDSbMjGlevKVQm+9Q
82
67
83
68
84
# You can replace this text with custom content, and it will be preserved on regeneration
69
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Deletedbiblio.pm (-27 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Deletedbiblio;
1
package Koha::Schema::Result::Deletedbiblio;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Deletedbiblio
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<deletedbiblio>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Deletedbiblio
19
15
20
=cut
16
=cut
21
17
Lines 74-87 __PACKAGE__->table("deletedbiblio"); Link Here
74
=head2 timestamp
70
=head2 timestamp
75
71
76
  data_type: 'timestamp'
72
  data_type: 'timestamp'
77
  datetime_undef_if_invalid: 1
78
  default_value: current_timestamp
73
  default_value: current_timestamp
79
  is_nullable: 0
74
  is_nullable: 0
80
75
81
=head2 datecreated
76
=head2 datecreated
82
77
83
  data_type: 'date'
78
  data_type: 'date'
84
  datetime_undef_if_invalid: 1
85
  is_nullable: 0
79
  is_nullable: 0
86
80
87
=head2 abstract
81
=head2 abstract
Lines 112-143 __PACKAGE__->add_columns( Link Here
112
  { data_type => "smallint", is_nullable => 1 },
106
  { data_type => "smallint", is_nullable => 1 },
113
  "timestamp",
107
  "timestamp",
114
  {
108
  {
115
    data_type => "timestamp",
109
    data_type     => "timestamp",
116
    datetime_undef_if_invalid => 1,
117
    default_value => \"current_timestamp",
110
    default_value => \"current_timestamp",
118
    is_nullable => 0,
111
    is_nullable   => 0,
119
  },
112
  },
120
  "datecreated",
113
  "datecreated",
121
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
114
  { data_type => "date", is_nullable => 0 },
122
  "abstract",
115
  "abstract",
123
  { data_type => "mediumtext", is_nullable => 1 },
116
  { data_type => "mediumtext", is_nullable => 1 },
124
);
117
);
125
126
=head1 PRIMARY KEY
127
128
=over 4
129
130
=item * L</biblionumber>
131
132
=back
133
134
=cut
135
136
__PACKAGE__->set_primary_key("biblionumber");
118
__PACKAGE__->set_primary_key("biblionumber");
137
119
138
120
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
121
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T381rHb43DPfZ7+d/WuSxQ
122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ozFAH9LmT5tXbzDb2GQA6A
141
123
142
124
143
# You can replace this text with custom content, and it will be preserved on regeneration
125
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Deletedbiblioitem.pm (-27 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Deletedbiblioitem;
1
package Koha::Schema::Result::Deletedbiblioitem;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Deletedbiblioitem
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<deletedbiblioitems>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Deletedbiblioitem
19
15
20
=cut
16
=cut
21
17
Lines 83-89 __PACKAGE__->table("deletedbiblioitems"); Link Here
83
=head2 volumedate
79
=head2 volumedate
84
80
85
  data_type: 'date'
81
  data_type: 'date'
86
  datetime_undef_if_invalid: 1
87
  is_nullable: 1
82
  is_nullable: 1
88
83
89
=head2 volumedesc
84
=head2 volumedesc
Lines 119-125 __PACKAGE__->table("deletedbiblioitems"); Link Here
119
=head2 timestamp
114
=head2 timestamp
120
115
121
  data_type: 'timestamp'
116
  data_type: 'timestamp'
122
  datetime_undef_if_invalid: 1
123
  default_value: current_timestamp
117
  default_value: current_timestamp
124
  is_nullable: 0
118
  is_nullable: 0
125
119
Lines 239-245 __PACKAGE__->add_columns( Link Here
239
  "publishercode",
233
  "publishercode",
240
  { data_type => "varchar", is_nullable => 1, size => 255 },
234
  { data_type => "varchar", is_nullable => 1, size => 255 },
241
  "volumedate",
235
  "volumedate",
242
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
236
  { data_type => "date", is_nullable => 1 },
243
  "volumedesc",
237
  "volumedesc",
244
  { data_type => "text", is_nullable => 1 },
238
  { data_type => "text", is_nullable => 1 },
245
  "collectiontitle",
239
  "collectiontitle",
Lines 254-263 __PACKAGE__->add_columns( Link Here
254
  { data_type => "text", is_nullable => 1 },
248
  { data_type => "text", is_nullable => 1 },
255
  "timestamp",
249
  "timestamp",
256
  {
250
  {
257
    data_type => "timestamp",
251
    data_type     => "timestamp",
258
    datetime_undef_if_invalid => 1,
259
    default_value => \"current_timestamp",
252
    default_value => \"current_timestamp",
260
    is_nullable => 0,
253
    is_nullable   => 0,
261
  },
254
  },
262
  "illus",
255
  "illus",
263
  { data_type => "varchar", is_nullable => 1, size => 255 },
256
  { data_type => "varchar", is_nullable => 1, size => 255 },
Lines 292-313 __PACKAGE__->add_columns( Link Here
292
  "marcxml",
285
  "marcxml",
293
  { data_type => "longtext", is_nullable => 0 },
286
  { data_type => "longtext", is_nullable => 0 },
294
);
287
);
295
296
=head1 PRIMARY KEY
297
298
=over 4
299
300
=item * L</biblioitemnumber>
301
302
=back
303
304
=cut
305
306
__PACKAGE__->set_primary_key("biblioitemnumber");
288
__PACKAGE__->set_primary_key("biblioitemnumber");
307
289
308
290
309
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
291
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
310
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Cf/DeVzIpMybe0uNA4bNTQ
292
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fCbXU1+T8BWiZUHa7KMmoA
311
293
312
294
313
# You can replace this text with custom content, and it will be preserved on regeneration
295
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Deletedborrower.pm (-18 / +10 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Deletedborrower;
1
package Koha::Schema::Result::Deletedborrower;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Deletedborrower
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<deletedborrowers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Deletedborrower
19
15
20
=cut
16
=cut
21
17
Lines 191-197 __PACKAGE__->table("deletedborrowers"); Link Here
191
=head2 dateofbirth
187
=head2 dateofbirth
192
188
193
  data_type: 'date'
189
  data_type: 'date'
194
  datetime_undef_if_invalid: 1
195
  is_nullable: 1
190
  is_nullable: 1
196
191
197
=head2 branchcode
192
=head2 branchcode
Lines 211-223 __PACKAGE__->table("deletedborrowers"); Link Here
211
=head2 dateenrolled
206
=head2 dateenrolled
212
207
213
  data_type: 'date'
208
  data_type: 'date'
214
  datetime_undef_if_invalid: 1
215
  is_nullable: 1
209
  is_nullable: 1
216
210
217
=head2 dateexpiry
211
=head2 dateexpiry
218
212
219
  data_type: 'date'
213
  data_type: 'date'
220
  datetime_undef_if_invalid: 1
221
  is_nullable: 1
214
  is_nullable: 1
222
215
223
=head2 gonenoaddress
216
=head2 gonenoaddress
Lines 233-239 __PACKAGE__->table("deletedborrowers"); Link Here
233
=head2 debarred
226
=head2 debarred
234
227
235
  data_type: 'date'
228
  data_type: 'date'
236
  datetime_undef_if_invalid: 1
237
  is_nullable: 1
229
  is_nullable: 1
238
230
239
=head2 debarredcomment
231
=head2 debarredcomment
Lines 461-481 __PACKAGE__->add_columns( Link Here
461
  "b_phone",
453
  "b_phone",
462
  { data_type => "mediumtext", is_nullable => 1 },
454
  { data_type => "mediumtext", is_nullable => 1 },
463
  "dateofbirth",
455
  "dateofbirth",
464
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
456
  { data_type => "date", is_nullable => 1 },
465
  "branchcode",
457
  "branchcode",
466
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
458
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
467
  "categorycode",
459
  "categorycode",
468
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
460
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
469
  "dateenrolled",
461
  "dateenrolled",
470
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
462
  { data_type => "date", is_nullable => 1 },
471
  "dateexpiry",
463
  "dateexpiry",
472
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
464
  { data_type => "date", is_nullable => 1 },
473
  "gonenoaddress",
465
  "gonenoaddress",
474
  { data_type => "tinyint", is_nullable => 1 },
466
  { data_type => "tinyint", is_nullable => 1 },
475
  "lost",
467
  "lost",
476
  { data_type => "tinyint", is_nullable => 1 },
468
  { data_type => "tinyint", is_nullable => 1 },
477
  "debarred",
469
  "debarred",
478
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
470
  { data_type => "date", is_nullable => 1 },
479
  "debarredcomment",
471
  "debarredcomment",
480
  { data_type => "varchar", is_nullable => 1, size => 255 },
472
  { data_type => "varchar", is_nullable => 1, size => 255 },
481
  "contactname",
473
  "contactname",
Lines 535-542 __PACKAGE__->add_columns( Link Here
535
);
527
);
536
528
537
529
538
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
530
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
539
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yA/UeNpbYIUrX/iWsF0NLw
531
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yZigQkRfkF2okjnJxUm+tQ
540
532
541
533
542
# You can replace this text with custom content, and it will be preserved on regeneration
534
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Deleteditem.pm (-35 / +13 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Deleteditem;
1
package Koha::Schema::Result::Deleteditem;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Deleteditem
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<deleteditems>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Deleteditem
19
15
20
=cut
16
=cut
21
17
Lines 50-56 __PACKAGE__->table("deleteditems"); Link Here
50
=head2 dateaccessioned
46
=head2 dateaccessioned
51
47
52
  data_type: 'date'
48
  data_type: 'date'
53
  datetime_undef_if_invalid: 1
54
  is_nullable: 1
49
  is_nullable: 1
55
50
56
=head2 booksellerid
51
=head2 booksellerid
Lines 79-97 __PACKAGE__->table("deleteditems"); Link Here
79
=head2 replacementpricedate
74
=head2 replacementpricedate
80
75
81
  data_type: 'date'
76
  data_type: 'date'
82
  datetime_undef_if_invalid: 1
83
  is_nullable: 1
77
  is_nullable: 1
84
78
85
=head2 datelastborrowed
79
=head2 datelastborrowed
86
80
87
  data_type: 'date'
81
  data_type: 'date'
88
  datetime_undef_if_invalid: 1
89
  is_nullable: 1
82
  is_nullable: 1
90
83
91
=head2 datelastseen
84
=head2 datelastseen
92
85
93
  data_type: 'date'
86
  data_type: 'date'
94
  datetime_undef_if_invalid: 1
95
  is_nullable: 1
87
  is_nullable: 1
96
88
97
=head2 stack
89
=head2 stack
Lines 174-180 __PACKAGE__->table("deleteditems"); Link Here
174
=head2 timestamp
166
=head2 timestamp
175
167
176
  data_type: 'timestamp'
168
  data_type: 'timestamp'
177
  datetime_undef_if_invalid: 1
178
  default_value: current_timestamp
169
  default_value: current_timestamp
179
  is_nullable: 0
170
  is_nullable: 0
180
171
Lines 193-199 __PACKAGE__->table("deleteditems"); Link Here
193
=head2 onloan
184
=head2 onloan
194
185
195
  data_type: 'date'
186
  data_type: 'date'
196
  datetime_undef_if_invalid: 1
197
  is_nullable: 1
187
  is_nullable: 1
198
188
199
=head2 cn_source
189
=head2 cn_source
Lines 271-277 __PACKAGE__->add_columns( Link Here
271
  "barcode",
261
  "barcode",
272
  { data_type => "varchar", is_nullable => 1, size => 20 },
262
  { data_type => "varchar", is_nullable => 1, size => 20 },
273
  "dateaccessioned",
263
  "dateaccessioned",
274
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
264
  { data_type => "date", is_nullable => 1 },
275
  "booksellerid",
265
  "booksellerid",
276
  { data_type => "mediumtext", is_nullable => 1 },
266
  { data_type => "mediumtext", is_nullable => 1 },
277
  "homebranch",
267
  "homebranch",
Lines 281-291 __PACKAGE__->add_columns( Link Here
281
  "replacementprice",
271
  "replacementprice",
282
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
272
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
283
  "replacementpricedate",
273
  "replacementpricedate",
284
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
274
  { data_type => "date", is_nullable => 1 },
285
  "datelastborrowed",
275
  "datelastborrowed",
286
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
276
  { data_type => "date", is_nullable => 1 },
287
  "datelastseen",
277
  "datelastseen",
288
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
278
  { data_type => "date", is_nullable => 1 },
289
  "stack",
279
  "stack",
290
  { data_type => "tinyint", is_nullable => 1 },
280
  { data_type => "tinyint", is_nullable => 1 },
291
  "notforloan",
281
  "notforloan",
Lines 316-332 __PACKAGE__->add_columns( Link Here
316
  { data_type => "mediumtext", is_nullable => 1 },
306
  { data_type => "mediumtext", is_nullable => 1 },
317
  "timestamp",
307
  "timestamp",
318
  {
308
  {
319
    data_type => "timestamp",
309
    data_type     => "timestamp",
320
    datetime_undef_if_invalid => 1,
321
    default_value => \"current_timestamp",
310
    default_value => \"current_timestamp",
322
    is_nullable => 0,
311
    is_nullable   => 0,
323
  },
312
  },
324
  "location",
313
  "location",
325
  { data_type => "varchar", is_nullable => 1, size => 80 },
314
  { data_type => "varchar", is_nullable => 1, size => 80 },
326
  "permanent_location",
315
  "permanent_location",
327
  { data_type => "varchar", is_nullable => 1, size => 80 },
316
  { data_type => "varchar", is_nullable => 1, size => 80 },
328
  "onloan",
317
  "onloan",
329
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
318
  { data_type => "date", is_nullable => 1 },
330
  "cn_source",
319
  "cn_source",
331
  { data_type => "varchar", is_nullable => 1, size => 10 },
320
  { data_type => "varchar", is_nullable => 1, size => 10 },
332
  "cn_sort",
321
  "cn_sort",
Lines 350-371 __PACKAGE__->add_columns( Link Here
350
  "marc",
339
  "marc",
351
  { data_type => "longblob", is_nullable => 1 },
340
  { data_type => "longblob", is_nullable => 1 },
352
);
341
);
353
354
=head1 PRIMARY KEY
355
356
=over 4
357
358
=item * L</itemnumber>
359
360
=back
361
362
=cut
363
364
__PACKAGE__->set_primary_key("itemnumber");
342
__PACKAGE__->set_primary_key("itemnumber");
365
343
366
344
367
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
345
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
368
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dfUPy7ijJ/uh9+0AqKjSBw
346
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GcKMAw4fpC+PimBoro+XSw
369
347
370
348
371
# You can replace this text with custom content, and it will be preserved on regeneration
349
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Ethnicity.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Ethnicity;
1
package Koha::Schema::Result::Ethnicity;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Ethnicity
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<ethnicity>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Ethnicity
19
15
20
=cut
16
=cut
21
17
Lines 44-65 __PACKAGE__->add_columns( Link Here
44
  "name",
40
  "name",
45
  { data_type => "varchar", is_nullable => 1, size => 255 },
41
  { data_type => "varchar", is_nullable => 1, size => 255 },
46
);
42
);
47
48
=head1 PRIMARY KEY
49
50
=over 4
51
52
=item * L</code>
53
54
=back
55
56
=cut
57
58
__PACKAGE__->set_primary_key("code");
43
__PACKAGE__->set_primary_key("code");
59
44
60
45
61
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
46
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HPwxTCHuS0ZYGSznK4laEA
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SJXFCB/CvUt7Lsl/GpmyIg
63
48
64
49
65
# You can replace this text with custom content, and it will be preserved on regeneration
50
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ExportFormat.pm (-37 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ExportFormat;
1
package Koha::Schema::Result::ExportFormat;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ExportFormat - Used for CSV export
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<export_format>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ExportFormat
19
15
20
=cut
16
=cut
21
17
Lines 40-46 __PACKAGE__->table("export_format"); Link Here
40
  data_type: 'mediumtext'
36
  data_type: 'mediumtext'
41
  is_nullable: 0
37
  is_nullable: 0
42
38
43
=head2 content
39
=head2 marcfields
44
40
45
  data_type: 'mediumtext'
41
  data_type: 'mediumtext'
46
  is_nullable: 0
42
  is_nullable: 0
Lines 69-81 __PACKAGE__->table("export_format"); Link Here
69
  is_nullable: 0
65
  is_nullable: 0
70
  size: 255
66
  size: 255
71
67
72
=head2 type
73
74
  data_type: 'varchar'
75
  default_value: 'marc'
76
  is_nullable: 1
77
  size: 255
78
79
=cut
68
=cut
80
69
81
__PACKAGE__->add_columns(
70
__PACKAGE__->add_columns(
Lines 85-91 __PACKAGE__->add_columns( Link Here
85
  { data_type => "varchar", is_nullable => 0, size => 255 },
74
  { data_type => "varchar", is_nullable => 0, size => 255 },
86
  "description",
75
  "description",
87
  { data_type => "mediumtext", is_nullable => 0 },
76
  { data_type => "mediumtext", is_nullable => 0 },
88
  "content",
77
  "marcfields",
89
  { data_type => "mediumtext", is_nullable => 0 },
78
  { data_type => "mediumtext", is_nullable => 0 },
90
  "csv_separator",
79
  "csv_separator",
91
  { data_type => "varchar", is_nullable => 0, size => 2 },
80
  { data_type => "varchar", is_nullable => 0, size => 2 },
Lines 95-124 __PACKAGE__->add_columns( Link Here
95
  { data_type => "varchar", is_nullable => 0, size => 2 },
84
  { data_type => "varchar", is_nullable => 0, size => 2 },
96
  "encoding",
85
  "encoding",
97
  { data_type => "varchar", is_nullable => 0, size => 255 },
86
  { data_type => "varchar", is_nullable => 0, size => 255 },
98
  "type",
99
  {
100
    data_type => "varchar",
101
    default_value => "marc",
102
    is_nullable => 1,
103
    size => 255,
104
  },
105
);
87
);
106
107
=head1 PRIMARY KEY
108
109
=over 4
110
111
=item * L</export_format_id>
112
113
=back
114
115
=cut
116
117
__PACKAGE__->set_primary_key("export_format_id");
88
__PACKAGE__->set_primary_key("export_format_id");
118
89
119
90
120
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
91
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AJbxXXJBftCbSKm2E/ZTjA
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jPBfECp+vDuzYLV2OSDUmQ
122
93
123
94
124
# 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/Fieldmapping.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Fieldmapping;
1
package Koha::Schema::Result::Fieldmapping;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Fieldmapping
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<fieldmapping>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Fieldmapping
19
15
20
=cut
16
=cut
21
17
Lines 68-89 __PACKAGE__->add_columns( Link Here
68
  "subfieldcode",
64
  "subfieldcode",
69
  { data_type => "char", is_nullable => 0, size => 1 },
65
  { data_type => "char", is_nullable => 0, size => 1 },
70
);
66
);
71
72
=head1 PRIMARY KEY
73
74
=over 4
75
76
=item * L</id>
77
78
=back
79
80
=cut
81
82
__PACKAGE__->set_primary_key("id");
67
__PACKAGE__->set_primary_key("id");
83
68
84
69
85
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
70
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x+izN6nqxs+W/g/demOpOg
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zx+/j3958nV4wa+alR9iUQ
87
72
88
73
89
# You can replace this text with custom content, and it will be preserved on regeneration
74
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/HoldFillTarget.pm (-40 / +20 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::HoldFillTarget;
1
package Koha::Schema::Result::HoldFillTarget;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::HoldFillTarget
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<hold_fill_targets>
11
12
=head1 NAME
13
14
Koha::Schema::Result::HoldFillTarget
19
15
20
=cut
16
=cut
21
17
Lines 68-116 __PACKAGE__->add_columns( Link Here
68
  "item_level_request",
64
  "item_level_request",
69
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
65
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
70
);
66
);
71
72
=head1 PRIMARY KEY
73
74
=over 4
75
76
=item * L</itemnumber>
77
78
=back
79
80
=cut
81
82
__PACKAGE__->set_primary_key("itemnumber");
67
__PACKAGE__->set_primary_key("itemnumber");
83
68
84
=head1 RELATIONS
69
=head1 RELATIONS
85
70
86
=head2 biblionumber
71
=head2 borrowernumber
87
72
88
Type: belongs_to
73
Type: belongs_to
89
74
90
Related object: L<Koha::Schema::Result::Biblio>
75
Related object: L<Koha::Schema::Result::Borrower>
91
76
92
=cut
77
=cut
93
78
94
__PACKAGE__->belongs_to(
79
__PACKAGE__->belongs_to(
95
  "biblionumber",
80
  "borrowernumber",
96
  "Koha::Schema::Result::Biblio",
81
  "Koha::Schema::Result::Borrower",
97
  { biblionumber => "biblionumber" },
82
  { borrowernumber => "borrowernumber" },
98
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
83
  { on_delete => "CASCADE", on_update => "CASCADE" },
99
);
84
);
100
85
101
=head2 borrowernumber
86
=head2 biblionumber
102
87
103
Type: belongs_to
88
Type: belongs_to
104
89
105
Related object: L<Koha::Schema::Result::Borrower>
90
Related object: L<Koha::Schema::Result::Biblio>
106
91
107
=cut
92
=cut
108
93
109
__PACKAGE__->belongs_to(
94
__PACKAGE__->belongs_to(
110
  "borrowernumber",
95
  "biblionumber",
111
  "Koha::Schema::Result::Borrower",
96
  "Koha::Schema::Result::Biblio",
112
  { borrowernumber => "borrowernumber" },
97
  { biblionumber => "biblionumber" },
113
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
98
  { on_delete => "CASCADE", on_update => "CASCADE" },
114
);
99
);
115
100
116
=head2 itemnumber
101
=head2 itemnumber
Lines 125-131 __PACKAGE__->belongs_to( Link Here
125
  "itemnumber",
110
  "itemnumber",
126
  "Koha::Schema::Result::Item",
111
  "Koha::Schema::Result::Item",
127
  { itemnumber => "itemnumber" },
112
  { itemnumber => "itemnumber" },
128
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
113
  { on_delete => "CASCADE", on_update => "CASCADE" },
129
);
114
);
130
115
131
=head2 source_branchcode
116
=head2 source_branchcode
Lines 140-156 __PACKAGE__->belongs_to( Link Here
140
  "source_branchcode",
125
  "source_branchcode",
141
  "Koha::Schema::Result::Branch",
126
  "Koha::Schema::Result::Branch",
142
  { branchcode => "source_branchcode" },
127
  { branchcode => "source_branchcode" },
143
  {
128
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
144
    is_deferrable => 1,
145
    join_type     => "LEFT",
146
    on_delete     => "CASCADE",
147
    on_update     => "CASCADE",
148
  },
149
);
129
);
150
130
151
131
152
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
132
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uSU9PBMr4e6XKuDgBV583A
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pIucZXhr+50M61306nqWAA
154
134
155
135
156
# You can replace this text with custom content, and it will be preserved on regeneration
136
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportAuth.pm (-11 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportAuth;
1
package Koha::Schema::Result::ImportAuth;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ImportAuth
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<import_auths>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ImportAuth
19
15
20
=cut
16
=cut
21
17
Lines 81-92 __PACKAGE__->belongs_to( Link Here
81
  "import_record",
77
  "import_record",
82
  "Koha::Schema::Result::ImportRecord",
78
  "Koha::Schema::Result::ImportRecord",
83
  { import_record_id => "import_record_id" },
79
  { import_record_id => "import_record_id" },
84
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
80
  { on_delete => "CASCADE", on_update => "CASCADE" },
85
);
81
);
86
82
87
83
88
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
84
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
89
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bm1ctlmYDh4qWUU95SLqBw
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Tp2nY6gyIIfdSJrLysYqzA
90
86
91
87
92
# You can replace this text with custom content, and it will be preserved on regeneration
88
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportBatch.pm (-27 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportBatch;
1
package Koha::Schema::Result::ImportBatch;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ImportBatch
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<import_batches>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ImportBatch
19
15
20
=cut
16
=cut
21
17
Lines 60-66 __PACKAGE__->table("import_batches"); Link Here
60
=head2 upload_timestamp
56
=head2 upload_timestamp
61
57
62
  data_type: 'timestamp'
58
  data_type: 'timestamp'
63
  datetime_undef_if_invalid: 1
64
  default_value: current_timestamp
59
  default_value: current_timestamp
65
  is_nullable: 0
60
  is_nullable: 0
66
61
Lines 82-88 __PACKAGE__->table("import_batches"); Link Here
82
77
83
  data_type: 'enum'
78
  data_type: 'enum'
84
  default_value: 'always_add'
79
  default_value: 'always_add'
85
  extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore","replace"]}
80
  extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore"]}
86
  is_nullable: 0
81
  is_nullable: 0
87
82
88
=head2 import_status
83
=head2 import_status
Lines 134-143 __PACKAGE__->add_columns( Link Here
134
  { data_type => "integer", default_value => 0, is_nullable => 0 },
129
  { data_type => "integer", default_value => 0, is_nullable => 0 },
135
  "upload_timestamp",
130
  "upload_timestamp",
136
  {
131
  {
137
    data_type => "timestamp",
132
    data_type     => "timestamp",
138
    datetime_undef_if_invalid => 1,
139
    default_value => \"current_timestamp",
133
    default_value => \"current_timestamp",
140
    is_nullable => 0,
134
    is_nullable   => 0,
141
  },
135
  },
142
  "overlay_action",
136
  "overlay_action",
143
  {
137
  {
Lines 163-169 __PACKAGE__->add_columns( Link Here
163
        "add_only_for_matches",
157
        "add_only_for_matches",
164
        "add_only_for_new",
158
        "add_only_for_new",
165
        "ignore",
159
        "ignore",
166
        "replace",
167
      ],
160
      ],
168
    },
161
    },
169
    is_nullable => 0,
162
    is_nullable => 0,
Lines 204-220 __PACKAGE__->add_columns( Link Here
204
  "comments",
197
  "comments",
205
  { data_type => "mediumtext", is_nullable => 1 },
198
  { data_type => "mediumtext", is_nullable => 1 },
206
);
199
);
207
208
=head1 PRIMARY KEY
209
210
=over 4
211
212
=item * L</import_batch_id>
213
214
=back
215
216
=cut
217
218
__PACKAGE__->set_primary_key("import_batch_id");
200
__PACKAGE__->set_primary_key("import_batch_id");
219
201
220
=head1 RELATIONS
202
=head1 RELATIONS
Lines 235-242 __PACKAGE__->has_many( Link Here
235
);
217
);
236
218
237
219
238
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 03:46:54
220
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
239
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4UfJtTeAzzsuBycjsn2foQ
221
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pEJic1YMNUgKTVlI7vcekw
240
222
241
223
242
# You can replace this text with custom content, and it will be preserved on regeneration
224
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportBiblio.pm (-11 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportBiblio;
1
package Koha::Schema::Result::ImportBiblio;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ImportBiblio
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<import_biblios>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ImportBiblio
19
15
20
=cut
16
=cut
21
17
Lines 113-124 __PACKAGE__->belongs_to( Link Here
113
  "import_record",
109
  "import_record",
114
  "Koha::Schema::Result::ImportRecord",
110
  "Koha::Schema::Result::ImportRecord",
115
  { import_record_id => "import_record_id" },
111
  { import_record_id => "import_record_id" },
116
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
112
  { on_delete => "CASCADE", on_update => "CASCADE" },
117
);
113
);
118
114
119
115
120
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
116
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6dQmL78YztbxS9qXHciPTQ
117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:90uDU3qRPuZBaaXwkGO5AA
122
118
123
119
124
# You can replace this text with custom content, and it will be preserved on regeneration
120
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportItem.pm (-22 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportItem;
1
package Koha::Schema::Result::ImportItem;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ImportItem
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<import_items>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ImportItem
19
15
20
=cut
16
=cut
21
17
Lines 86-102 __PACKAGE__->add_columns( Link Here
86
  "import_error",
82
  "import_error",
87
  { data_type => "mediumtext", is_nullable => 1 },
83
  { data_type => "mediumtext", is_nullable => 1 },
88
);
84
);
89
90
=head1 PRIMARY KEY
91
92
=over 4
93
94
=item * L</import_items_id>
95
96
=back
97
98
=cut
99
100
__PACKAGE__->set_primary_key("import_items_id");
85
__PACKAGE__->set_primary_key("import_items_id");
101
86
102
=head1 RELATIONS
87
=head1 RELATIONS
Lines 113-124 __PACKAGE__->belongs_to( Link Here
113
  "import_record",
98
  "import_record",
114
  "Koha::Schema::Result::ImportRecord",
99
  "Koha::Schema::Result::ImportRecord",
115
  { import_record_id => "import_record_id" },
100
  { import_record_id => "import_record_id" },
116
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
101
  { on_delete => "CASCADE", on_update => "CASCADE" },
117
);
102
);
118
103
119
104
120
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
105
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xJd76DD3iljc4uFm7iZeLQ
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yggV+XKPL5OX1PCuwCpOcA
122
107
123
108
124
# You can replace this text with custom content, and it will be preserved on regeneration
109
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportRecord.pm (-42 / +24 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportRecord;
1
package Koha::Schema::Result::ImportRecord;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ImportRecord
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<import_records>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ImportRecord
19
15
20
=cut
16
=cut
21
17
Lines 50-63 __PACKAGE__->table("import_records"); Link Here
50
=head2 upload_timestamp
46
=head2 upload_timestamp
51
47
52
  data_type: 'timestamp'
48
  data_type: 'timestamp'
53
  datetime_undef_if_invalid: 1
54
  default_value: current_timestamp
49
  default_value: current_timestamp
55
  is_nullable: 0
50
  is_nullable: 0
56
51
57
=head2 import_date
52
=head2 import_date
58
53
59
  data_type: 'date'
54
  data_type: 'date'
60
  datetime_undef_if_invalid: 1
61
  is_nullable: 1
55
  is_nullable: 1
62
56
63
=head2 marc
57
=head2 marc
Lines 127-139 __PACKAGE__->add_columns( Link Here
127
  { data_type => "integer", default_value => 0, is_nullable => 0 },
121
  { data_type => "integer", default_value => 0, is_nullable => 0 },
128
  "upload_timestamp",
122
  "upload_timestamp",
129
  {
123
  {
130
    data_type => "timestamp",
124
    data_type     => "timestamp",
131
    datetime_undef_if_invalid => 1,
132
    default_value => \"current_timestamp",
125
    default_value => \"current_timestamp",
133
    is_nullable => 0,
126
    is_nullable   => 0,
134
  },
127
  },
135
  "import_date",
128
  "import_date",
136
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
129
  { data_type => "date", is_nullable => 1 },
137
  "marc",
130
  "marc",
138
  { data_type => "longblob", is_nullable => 0 },
131
  { data_type => "longblob", is_nullable => 0 },
139
  "marcxml",
132
  "marcxml",
Lines 179-195 __PACKAGE__->add_columns( Link Here
179
  "z3950random",
172
  "z3950random",
180
  { data_type => "varchar", is_nullable => 1, size => 40 },
173
  { data_type => "varchar", is_nullable => 1, size => 40 },
181
);
174
);
182
183
=head1 PRIMARY KEY
184
185
=over 4
186
187
=item * L</import_record_id>
188
189
=back
190
191
=cut
192
193
__PACKAGE__->set_primary_key("import_record_id");
175
__PACKAGE__->set_primary_key("import_record_id");
194
176
195
=head1 RELATIONS
177
=head1 RELATIONS
Lines 209-229 __PACKAGE__->has_many( Link Here
209
  { cascade_copy => 0, cascade_delete => 0 },
191
  { cascade_copy => 0, cascade_delete => 0 },
210
);
192
);
211
193
212
=head2 import_batch
213
214
Type: belongs_to
215
216
Related object: L<Koha::Schema::Result::ImportBatch>
217
218
=cut
219
220
__PACKAGE__->belongs_to(
221
  "import_batch",
222
  "Koha::Schema::Result::ImportBatch",
223
  { import_batch_id => "import_batch_id" },
224
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
225
);
226
227
=head2 import_biblios
194
=head2 import_biblios
228
195
229
Type: has_many
196
Type: has_many
Lines 269-277 __PACKAGE__->has_many( Link Here
269
  { cascade_copy => 0, cascade_delete => 0 },
236
  { cascade_copy => 0, cascade_delete => 0 },
270
);
237
);
271
238
239
=head2 import_batch
240
241
Type: belongs_to
242
243
Related object: L<Koha::Schema::Result::ImportBatch>
244
245
=cut
246
247
__PACKAGE__->belongs_to(
248
  "import_batch",
249
  "Koha::Schema::Result::ImportBatch",
250
  { import_batch_id => "import_batch_id" },
251
  { on_delete => "CASCADE", on_update => "CASCADE" },
252
);
253
272
254
273
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
255
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
274
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e71umJ0QmfPBvlxmzbClng
256
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2mhdPG0lhQ2+CqYzXcoBiw
275
257
276
258
277
# You can replace this text with custom content, and it will be preserved on regeneration
259
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ImportRecordMatches.pm (-11 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportRecordMatches;
1
package Koha::Schema::Result::ImportRecordMatches;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ImportRecordMatches
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<import_record_matches>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ImportRecordMatches
19
15
20
=cut
16
=cut
21
17
Lines 65-76 __PACKAGE__->belongs_to( Link Here
65
  "import_record",
61
  "import_record",
66
  "Koha::Schema::Result::ImportRecord",
62
  "Koha::Schema::Result::ImportRecord",
67
  { import_record_id => "import_record_id" },
63
  { import_record_id => "import_record_id" },
68
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
64
  { on_delete => "CASCADE", on_update => "CASCADE" },
69
);
65
);
70
66
71
67
72
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
68
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
73
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VLaEo7f96O80PqFr/baR9A
69
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2iJH02loa+ULjaff8QWFwA
74
70
75
71
76
# You can replace this text with custom content, and it will be preserved on regeneration
72
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Issue.pm (-50 / +23 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Issue;
1
package Koha::Schema::Result::Issue;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Issue
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<issues>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Issue
19
15
20
=cut
16
=cut
21
17
Lines 23-28 __PACKAGE__->table("issues"); Link Here
23
19
24
=head1 ACCESSORS
20
=head1 ACCESSORS
25
21
22
=head2 issue_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
26
=head2 borrowernumber
28
=head2 borrowernumber
27
29
28
  data_type: 'integer'
30
  data_type: 'integer'
Lines 38-44 __PACKAGE__->table("issues"); Link Here
38
=head2 date_due
40
=head2 date_due
39
41
40
  data_type: 'datetime'
42
  data_type: 'datetime'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
43
  is_nullable: 1
43
44
44
=head2 branchcode
45
=head2 branchcode
Lines 56-68 __PACKAGE__->table("issues"); Link Here
56
=head2 returndate
57
=head2 returndate
57
58
58
  data_type: 'datetime'
59
  data_type: 'datetime'
59
  datetime_undef_if_invalid: 1
60
  is_nullable: 1
60
  is_nullable: 1
61
61
62
=head2 lastreneweddate
62
=head2 lastreneweddate
63
63
64
  data_type: 'datetime'
64
  data_type: 'datetime'
65
  datetime_undef_if_invalid: 1
66
  is_nullable: 1
65
  is_nullable: 1
67
66
68
=head2 return
67
=head2 return
Lines 79-141 __PACKAGE__->table("issues"); Link Here
79
=head2 timestamp
78
=head2 timestamp
80
79
81
  data_type: 'timestamp'
80
  data_type: 'timestamp'
82
  datetime_undef_if_invalid: 1
83
  default_value: current_timestamp
81
  default_value: current_timestamp
84
  is_nullable: 0
82
  is_nullable: 0
85
83
86
=head2 issuedate
84
=head2 issuedate
87
85
88
  data_type: 'datetime'
86
  data_type: 'datetime'
89
  datetime_undef_if_invalid: 1
90
  is_nullable: 1
87
  is_nullable: 1
91
88
92
=cut
89
=cut
93
90
94
__PACKAGE__->add_columns(
91
__PACKAGE__->add_columns(
92
  "issue_id",
93
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
95
  "borrowernumber",
94
  "borrowernumber",
96
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
95
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97
  "itemnumber",
96
  "itemnumber",
98
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
99
  "date_due",
98
  "date_due",
100
  {
99
  { data_type => "datetime", is_nullable => 1 },
101
    data_type => "datetime",
102
    datetime_undef_if_invalid => 1,
103
    is_nullable => 1,
104
  },
105
  "branchcode",
100
  "branchcode",
106
  { data_type => "varchar", is_nullable => 1, size => 10 },
101
  { data_type => "varchar", is_nullable => 1, size => 10 },
107
  "issuingbranch",
102
  "issuingbranch",
108
  { data_type => "varchar", is_nullable => 1, size => 18 },
103
  { data_type => "varchar", is_nullable => 1, size => 18 },
109
  "returndate",
104
  "returndate",
110
  {
105
  { data_type => "datetime", is_nullable => 1 },
111
    data_type => "datetime",
112
    datetime_undef_if_invalid => 1,
113
    is_nullable => 1,
114
  },
115
  "lastreneweddate",
106
  "lastreneweddate",
116
  {
107
  { data_type => "datetime", is_nullable => 1 },
117
    data_type => "datetime",
118
    datetime_undef_if_invalid => 1,
119
    is_nullable => 1,
120
  },
121
  "return",
108
  "return",
122
  { data_type => "varchar", is_nullable => 1, size => 4 },
109
  { data_type => "varchar", is_nullable => 1, size => 4 },
123
  "renewals",
110
  "renewals",
124
  { data_type => "tinyint", is_nullable => 1 },
111
  { data_type => "tinyint", is_nullable => 1 },
125
  "timestamp",
112
  "timestamp",
126
  {
113
  {
127
    data_type => "timestamp",
114
    data_type     => "timestamp",
128
    datetime_undef_if_invalid => 1,
129
    default_value => \"current_timestamp",
115
    default_value => \"current_timestamp",
130
    is_nullable => 0,
116
    is_nullable   => 0,
131
  },
117
  },
132
  "issuedate",
118
  "issuedate",
133
  {
119
  { data_type => "datetime", is_nullable => 1 },
134
    data_type => "datetime",
135
    datetime_undef_if_invalid => 1,
136
    is_nullable => 1,
137
  },
138
);
120
);
121
__PACKAGE__->set_primary_key("issue_id");
139
122
140
=head1 RELATIONS
123
=head1 RELATIONS
141
124
Lines 151-162 __PACKAGE__->belongs_to( Link Here
151
  "borrowernumber",
134
  "borrowernumber",
152
  "Koha::Schema::Result::Borrower",
135
  "Koha::Schema::Result::Borrower",
153
  { borrowernumber => "borrowernumber" },
136
  { borrowernumber => "borrowernumber" },
154
  {
137
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
155
    is_deferrable => 1,
156
    join_type     => "LEFT",
157
    on_delete     => "CASCADE",
158
    on_update     => "CASCADE",
159
  },
160
);
138
);
161
139
162
=head2 itemnumber
140
=head2 itemnumber
Lines 171-187 __PACKAGE__->belongs_to( Link Here
171
  "itemnumber",
149
  "itemnumber",
172
  "Koha::Schema::Result::Item",
150
  "Koha::Schema::Result::Item",
173
  { itemnumber => "itemnumber" },
151
  { itemnumber => "itemnumber" },
174
  {
152
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
175
    is_deferrable => 1,
176
    join_type     => "LEFT",
177
    on_delete     => "CASCADE",
178
    on_update     => "CASCADE",
179
  },
180
);
153
);
181
154
182
155
183
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
156
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZEh31EKBmURMKxDxI+H3EA
157
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tvpuw8k1hjh2nbOsng5k/w
185
158
186
__PACKAGE__->belongs_to(
159
__PACKAGE__->belongs_to(
187
  "borrower",
160
  "borrower",
(-)a/Koha/Schema/Result/Issuingrule.pm (-27 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Issuingrule;
1
package Koha::Schema::Result::Issuingrule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Issuingrule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<issuingrules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Issuingrule
19
15
20
=cut
16
=cut
21
17
Lines 106-112 __PACKAGE__->table("issuingrules"); Link Here
106
=head2 hardduedate
102
=head2 hardduedate
107
103
108
  data_type: 'date'
104
  data_type: 'date'
109
  datetime_undef_if_invalid: 1
110
  is_nullable: 1
105
  is_nullable: 1
111
106
112
=head2 hardduedatecompare
107
=head2 hardduedatecompare
Lines 182-188 __PACKAGE__->add_columns( Link Here
182
    size => 10,
177
    size => 10,
183
  },
178
  },
184
  "hardduedate",
179
  "hardduedate",
185
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
180
  { data_type => "date", is_nullable => 1 },
186
  "hardduedatecompare",
181
  "hardduedatecompare",
187
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
182
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
188
  "renewalsallowed",
183
  "renewalsallowed",
Lines 196-221 __PACKAGE__->add_columns( Link Here
196
  "overduefinescap",
191
  "overduefinescap",
197
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
192
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
198
);
193
);
199
200
=head1 PRIMARY KEY
201
202
=over 4
203
204
=item * L</branchcode>
205
206
=item * L</categorycode>
207
208
=item * L</itemtype>
209
210
=back
211
212
=cut
213
214
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
194
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
215
195
216
196
217
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
197
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
218
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aq0+Nbs8f4j1SeQwc+kKRg
198
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WQvxhQ7mZ7F3LmdScYNPmw
219
199
220
200
221
# You can replace this text with custom content, and it will be preserved on regeneration
201
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Item.pm (-88 / +43 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Item;
1
package Koha::Schema::Result::Item;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Item
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<items>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Item
19
15
20
=cut
16
=cut
21
17
Lines 51-57 __PACKAGE__->table("items"); Link Here
51
=head2 dateaccessioned
47
=head2 dateaccessioned
52
48
53
  data_type: 'date'
49
  data_type: 'date'
54
  datetime_undef_if_invalid: 1
55
  is_nullable: 1
50
  is_nullable: 1
56
51
57
=head2 booksellerid
52
=head2 booksellerid
Lines 81-99 __PACKAGE__->table("items"); Link Here
81
=head2 replacementpricedate
76
=head2 replacementpricedate
82
77
83
  data_type: 'date'
78
  data_type: 'date'
84
  datetime_undef_if_invalid: 1
85
  is_nullable: 1
79
  is_nullable: 1
86
80
87
=head2 datelastborrowed
81
=head2 datelastborrowed
88
82
89
  data_type: 'date'
83
  data_type: 'date'
90
  datetime_undef_if_invalid: 1
91
  is_nullable: 1
84
  is_nullable: 1
92
85
93
=head2 datelastseen
86
=head2 datelastseen
94
87
95
  data_type: 'date'
88
  data_type: 'date'
96
  datetime_undef_if_invalid: 1
97
  is_nullable: 1
89
  is_nullable: 1
98
90
99
=head2 stack
91
=head2 stack
Lines 177-183 __PACKAGE__->table("items"); Link Here
177
=head2 timestamp
169
=head2 timestamp
178
170
179
  data_type: 'timestamp'
171
  data_type: 'timestamp'
180
  datetime_undef_if_invalid: 1
181
  default_value: current_timestamp
172
  default_value: current_timestamp
182
  is_nullable: 0
173
  is_nullable: 0
183
174
Lines 196-202 __PACKAGE__->table("items"); Link Here
196
=head2 onloan
187
=head2 onloan
197
188
198
  data_type: 'date'
189
  data_type: 'date'
199
  datetime_undef_if_invalid: 1
200
  is_nullable: 1
190
  is_nullable: 1
201
191
202
=head2 cn_source
192
=head2 cn_source
Lines 273-279 __PACKAGE__->add_columns( Link Here
273
  "barcode",
263
  "barcode",
274
  { data_type => "varchar", is_nullable => 1, size => 20 },
264
  { data_type => "varchar", is_nullable => 1, size => 20 },
275
  "dateaccessioned",
265
  "dateaccessioned",
276
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
266
  { data_type => "date", is_nullable => 1 },
277
  "booksellerid",
267
  "booksellerid",
278
  { data_type => "mediumtext", is_nullable => 1 },
268
  { data_type => "mediumtext", is_nullable => 1 },
279
  "homebranch",
269
  "homebranch",
Lines 283-293 __PACKAGE__->add_columns( Link Here
283
  "replacementprice",
273
  "replacementprice",
284
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
274
  { data_type => "decimal", is_nullable => 1, size => [8, 2] },
285
  "replacementpricedate",
275
  "replacementpricedate",
286
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
276
  { data_type => "date", is_nullable => 1 },
287
  "datelastborrowed",
277
  "datelastborrowed",
288
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
278
  { data_type => "date", is_nullable => 1 },
289
  "datelastseen",
279
  "datelastseen",
290
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
280
  { data_type => "date", is_nullable => 1 },
291
  "stack",
281
  "stack",
292
  { data_type => "tinyint", is_nullable => 1 },
282
  { data_type => "tinyint", is_nullable => 1 },
293
  "notforloan",
283
  "notforloan",
Lines 318-334 __PACKAGE__->add_columns( Link Here
318
  { data_type => "mediumtext", is_nullable => 1 },
308
  { data_type => "mediumtext", is_nullable => 1 },
319
  "timestamp",
309
  "timestamp",
320
  {
310
  {
321
    data_type => "timestamp",
311
    data_type     => "timestamp",
322
    datetime_undef_if_invalid => 1,
323
    default_value => \"current_timestamp",
312
    default_value => \"current_timestamp",
324
    is_nullable => 0,
313
    is_nullable   => 0,
325
  },
314
  },
326
  "location",
315
  "location",
327
  { data_type => "varchar", is_nullable => 1, size => 80 },
316
  { data_type => "varchar", is_nullable => 1, size => 80 },
328
  "permanent_location",
317
  "permanent_location",
329
  { data_type => "varchar", is_nullable => 1, size => 80 },
318
  { data_type => "varchar", is_nullable => 1, size => 80 },
330
  "onloan",
319
  "onloan",
331
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
320
  { data_type => "date", is_nullable => 1 },
332
  "cn_source",
321
  "cn_source",
333
  { data_type => "varchar", is_nullable => 1, size => 10 },
322
  { data_type => "varchar", is_nullable => 1, size => 10 },
334
  "cn_sort",
323
  "cn_sort",
Lines 350-380 __PACKAGE__->add_columns( Link Here
350
  "stocknumber",
339
  "stocknumber",
351
  { data_type => "varchar", is_nullable => 1, size => 32 },
340
  { data_type => "varchar", is_nullable => 1, size => 32 },
352
);
341
);
353
354
=head1 PRIMARY KEY
355
356
=over 4
357
358
=item * L</itemnumber>
359
360
=back
361
362
=cut
363
364
__PACKAGE__->set_primary_key("itemnumber");
342
__PACKAGE__->set_primary_key("itemnumber");
365
366
=head1 UNIQUE CONSTRAINTS
367
368
=head2 C<itembarcodeidx>
369
370
=over 4
371
372
=item * L</barcode>
373
374
=back
375
376
=cut
377
378
__PACKAGE__->add_unique_constraint("itembarcodeidx", ["barcode"]);
343
__PACKAGE__->add_unique_constraint("itembarcodeidx", ["barcode"]);
379
344
380
=head1 RELATIONS
345
=head1 RELATIONS
Lines 394-414 __PACKAGE__->has_many( Link Here
394
  { cascade_copy => 0, cascade_delete => 0 },
359
  { cascade_copy => 0, cascade_delete => 0 },
395
);
360
);
396
361
397
=head2 biblioitemnumber
398
399
Type: belongs_to
400
401
Related object: L<Koha::Schema::Result::Biblioitem>
402
403
=cut
404
405
__PACKAGE__->belongs_to(
406
  "biblioitemnumber",
407
  "Koha::Schema::Result::Biblioitem",
408
  { biblioitemnumber => "biblioitemnumber" },
409
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
410
);
411
412
=head2 branchtransfers
362
=head2 branchtransfers
413
363
414
Type: has_many
364
Type: has_many
Lines 469-492 __PACKAGE__->might_have( Link Here
469
  { cascade_copy => 0, cascade_delete => 0 },
419
  { cascade_copy => 0, cascade_delete => 0 },
470
);
420
);
471
421
472
=head2 holdingbranch
422
=head2 issues
423
424
Type: has_many
425
426
Related object: L<Koha::Schema::Result::Issue>
427
428
=cut
429
430
__PACKAGE__->has_many(
431
  "issues",
432
  "Koha::Schema::Result::Issue",
433
  { "foreign.itemnumber" => "self.itemnumber" },
434
  { cascade_copy => 0, cascade_delete => 0 },
435
);
436
437
=head2 biblioitemnumber
473
438
474
Type: belongs_to
439
Type: belongs_to
475
440
476
Related object: L<Koha::Schema::Result::Branch>
441
Related object: L<Koha::Schema::Result::Biblioitem>
477
442
478
=cut
443
=cut
479
444
480
__PACKAGE__->belongs_to(
445
__PACKAGE__->belongs_to(
481
  "holdingbranch",
446
  "biblioitemnumber",
482
  "Koha::Schema::Result::Branch",
447
  "Koha::Schema::Result::Biblioitem",
483
  { branchcode => "holdingbranch" },
448
  { biblioitemnumber => "biblioitemnumber" },
484
  {
449
  { on_delete => "CASCADE", on_update => "CASCADE" },
485
    is_deferrable => 1,
486
    join_type     => "LEFT",
487
    on_delete     => "CASCADE",
488
    on_update     => "CASCADE",
489
  },
490
);
450
);
491
451
492
=head2 homebranch
452
=head2 homebranch
Lines 501-527 __PACKAGE__->belongs_to( Link Here
501
  "homebranch",
461
  "homebranch",
502
  "Koha::Schema::Result::Branch",
462
  "Koha::Schema::Result::Branch",
503
  { branchcode => "homebranch" },
463
  { branchcode => "homebranch" },
504
  {
464
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
505
    is_deferrable => 1,
506
    join_type     => "LEFT",
507
    on_delete     => "CASCADE",
508
    on_update     => "CASCADE",
509
  },
510
);
465
);
511
466
512
=head2 issues
467
=head2 holdingbranch
513
468
514
Type: has_many
469
Type: belongs_to
515
470
516
Related object: L<Koha::Schema::Result::Issue>
471
Related object: L<Koha::Schema::Result::Branch>
517
472
518
=cut
473
=cut
519
474
520
__PACKAGE__->has_many(
475
__PACKAGE__->belongs_to(
521
  "issues",
476
  "holdingbranch",
522
  "Koha::Schema::Result::Issue",
477
  "Koha::Schema::Result::Branch",
523
  { "foreign.itemnumber" => "self.itemnumber" },
478
  { branchcode => "holdingbranch" },
524
  { cascade_copy => 0, cascade_delete => 0 },
479
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
525
);
480
);
526
481
527
=head2 old_issues
482
=head2 old_issues
Lines 585-592 __PACKAGE__->might_have( Link Here
585
);
540
);
586
541
587
542
588
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
543
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
589
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JV1Q/UVlKQ6QgVFMGBIZCw
544
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zb/+LZ2AK8v+ceCRqJOmZw
590
545
591
__PACKAGE__->belongs_to(
546
__PACKAGE__->belongs_to(
592
    "biblio",
547
    "biblio",
(-)a/Koha/Schema/Result/ItemCirculationAlertPreference.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ItemCirculationAlertPreference;
1
package Koha::Schema::Result::ItemCirculationAlertPreference;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ItemCirculationAlertPreference
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<item_circulation_alert_preferences>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ItemCirculationAlertPreference
19
15
20
=cut
16
=cut
21
17
Lines 67-88 __PACKAGE__->add_columns( Link Here
67
  "notification",
63
  "notification",
68
  { data_type => "varchar", is_nullable => 0, size => 16 },
64
  { data_type => "varchar", is_nullable => 0, size => 16 },
69
);
65
);
70
71
=head1 PRIMARY KEY
72
73
=over 4
74
75
=item * L</id>
76
77
=back
78
79
=cut
80
81
__PACKAGE__->set_primary_key("id");
66
__PACKAGE__->set_primary_key("id");
82
67
83
68
84
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
69
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1JO3F3Wc1jjqKR3jzx2eiw
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:si77ywP244wbsohR490vpQ
86
71
87
72
88
# You can replace this text with custom content, and it will be preserved on regeneration
73
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Itemtype.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Itemtype;
1
package Koha::Schema::Result::Itemtype;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Itemtype
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<itemtypes>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Itemtype
19
15
20
=cut
16
=cut
21
17
Lines 95-111 __PACKAGE__->add_columns( Link Here
95
    size => 16,
91
    size => 16,
96
  },
92
  },
97
);
93
);
98
99
=head1 PRIMARY KEY
100
101
=over 4
102
103
=item * L</itemtype>
104
105
=back
106
107
=cut
108
109
__PACKAGE__->set_primary_key("itemtype");
94
__PACKAGE__->set_primary_key("itemtype");
110
95
111
=head1 RELATIONS
96
=head1 RELATIONS
Lines 141-148 __PACKAGE__->might_have( Link Here
141
);
126
);
142
127
143
128
144
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
129
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BmFEWUxi2Ha50Hv6nQhDKQ
130
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jL4vwjVo/Xoy0Lsq9Cq2sw
146
131
147
132
148
# You can replace this text with custom content, and it will be preserved on regeneration
133
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/LanguageDescription.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::LanguageDescription;
1
package Koha::Schema::Result::LanguageDescription;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::LanguageDescription
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<language_descriptions>
11
12
=head1 NAME
13
14
Koha::Schema::Result::LanguageDescription
19
15
20
=cut
16
=cut
21
17
Lines 67-88 __PACKAGE__->add_columns( Link Here
67
  "id",
63
  "id",
68
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
64
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69
);
65
);
70
71
=head1 PRIMARY KEY
72
73
=over 4
74
75
=item * L</id>
76
77
=back
78
79
=cut
80
81
__PACKAGE__->set_primary_key("id");
66
__PACKAGE__->set_primary_key("id");
82
67
83
68
84
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
69
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fQEN7ks3f7aLuoDQWqEv+Q
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1pL9MoNMHVtgZ7f4rvfC7A
86
71
87
72
88
# You can replace this text with custom content, and it will be preserved on regeneration
73
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/LanguageRfc4646ToIso639.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::LanguageRfc4646ToIso639;
1
package Koha::Schema::Result::LanguageRfc4646ToIso639;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::LanguageRfc4646ToIso639
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<language_rfc4646_to_iso639>
11
12
=head1 NAME
13
14
Koha::Schema::Result::LanguageRfc4646ToIso639
19
15
20
=cut
16
=cut
21
17
Lines 51-72 __PACKAGE__->add_columns( Link Here
51
  "id",
47
  "id",
52
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
48
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53
);
49
);
54
55
=head1 PRIMARY KEY
56
57
=over 4
58
59
=item * L</id>
60
61
=back
62
63
=cut
64
65
__PACKAGE__->set_primary_key("id");
50
__PACKAGE__->set_primary_key("id");
66
51
67
52
68
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
53
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
69
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:80baGnx1j4ZZjs0Qn5VMsw
54
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DIo2SjNbR4SAshupeHNGUw
70
55
71
56
72
# You can replace this text with custom content, and it will be preserved on regeneration
57
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/LanguageScriptBidi.pm (-10 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::LanguageScriptBidi;
1
package Koha::Schema::Result::LanguageScriptBidi;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::LanguageScriptBidi
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<language_script_bidi>
11
12
=head1 NAME
13
14
Koha::Schema::Result::LanguageScriptBidi
19
15
20
=cut
16
=cut
21
17
Lines 45-52 __PACKAGE__->add_columns( Link Here
45
);
41
);
46
42
47
43
48
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
44
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
49
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TBR2kCdB/nvEcdDo8I4rQA
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a+0c1CTsVC0hkwmqXZoMbA
50
46
51
47
52
# You can replace this text with custom content, and it will be preserved on regeneration
48
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/LanguageScriptMapping.pm (-10 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::LanguageScriptMapping;
1
package Koha::Schema::Result::LanguageScriptMapping;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::LanguageScriptMapping
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<language_script_mapping>
11
12
=head1 NAME
13
14
Koha::Schema::Result::LanguageScriptMapping
19
15
20
=cut
16
=cut
21
17
Lines 45-52 __PACKAGE__->add_columns( Link Here
45
);
41
);
46
42
47
43
48
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
44
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
49
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c9gZ400zs7OkvI1JDCjyCg
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fd7zBk+6UaBq+FZhMBghzA
50
46
51
47
52
# You can replace this text with custom content, and it will be preserved on regeneration
48
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/LanguageSubtagRegistry.pm (-23 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::LanguageSubtagRegistry;
1
package Koha::Schema::Result::LanguageSubtagRegistry;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::LanguageSubtagRegistry
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<language_subtag_registry>
11
12
=head1 NAME
13
14
Koha::Schema::Result::LanguageSubtagRegistry
19
15
20
=cut
16
=cut
21
17
Lines 44-50 __PACKAGE__->table("language_subtag_registry"); Link Here
44
=head2 added
40
=head2 added
45
41
46
  data_type: 'date'
42
  data_type: 'date'
47
  datetime_undef_if_invalid: 1
48
  is_nullable: 1
43
  is_nullable: 1
49
44
50
=head2 id
45
=head2 id
Lines 63-88 __PACKAGE__->add_columns( Link Here
63
  "description",
58
  "description",
64
  { data_type => "varchar", is_nullable => 1, size => 25 },
59
  { data_type => "varchar", is_nullable => 1, size => 25 },
65
  "added",
60
  "added",
66
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
61
  { data_type => "date", is_nullable => 1 },
67
  "id",
62
  "id",
68
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
63
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69
);
64
);
70
71
=head1 PRIMARY KEY
72
73
=over 4
74
75
=item * L</id>
76
77
=back
78
79
=cut
80
81
__PACKAGE__->set_primary_key("id");
65
__PACKAGE__->set_primary_key("id");
82
66
83
67
84
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
68
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rauj/sMGM6sskKuMC/XRcQ
69
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OOyjUaY5McrqWBXInueG2A
86
70
87
71
88
# You can replace this text with custom content, and it will be preserved on regeneration
72
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Letter.pm (-25 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Letter;
1
package Koha::Schema::Result::Letter;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Letter
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<letter>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Letter
19
15
20
=cut
16
=cut
21
17
Lines 87-107 __PACKAGE__->add_columns( Link Here
87
  "content",
83
  "content",
88
  { data_type => "text", is_nullable => 1 },
84
  { data_type => "text", is_nullable => 1 },
89
);
85
);
90
91
=head1 PRIMARY KEY
92
93
=over 4
94
95
=item * L</module>
96
97
=item * L</code>
98
99
=item * L</branchcode>
100
101
=back
102
103
=cut
104
105
__PACKAGE__->set_primary_key("module", "code", "branchcode");
86
__PACKAGE__->set_primary_key("module", "code", "branchcode");
106
87
107
=head1 RELATIONS
88
=head1 RELATIONS
Lines 126-133 __PACKAGE__->has_many( Link Here
126
);
107
);
127
108
128
109
129
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
110
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
130
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lc0RfG7k0QwnWCDywFImLg
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EsZAQqfiyVz5Ts/xNowFcQ
131
112
132
113
133
# You can replace this text with custom content, and it will be preserved on regeneration
114
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Linktracker.pm (-27 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Linktracker;
1
package Koha::Schema::Result::Linktracker;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Linktracker
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<linktracker>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Linktracker
19
15
20
=cut
16
=cut
21
17
Lines 52-58 __PACKAGE__->table("linktracker"); Link Here
52
=head2 timeclicked
48
=head2 timeclicked
53
49
54
  data_type: 'datetime'
50
  data_type: 'datetime'
55
  datetime_undef_if_invalid: 1
56
  is_nullable: 1
51
  is_nullable: 1
57
52
58
=cut
53
=cut
Lines 69-96 __PACKAGE__->add_columns( Link Here
69
  "url",
64
  "url",
70
  { data_type => "text", is_nullable => 1 },
65
  { data_type => "text", is_nullable => 1 },
71
  "timeclicked",
66
  "timeclicked",
72
  {
67
  { data_type => "datetime", is_nullable => 1 },
73
    data_type => "datetime",
74
    datetime_undef_if_invalid => 1,
75
    is_nullable => 1,
76
  },
77
);
68
);
78
79
=head1 PRIMARY KEY
80
81
=over 4
82
83
=item * L</id>
84
85
=back
86
87
=cut
88
89
__PACKAGE__->set_primary_key("id");
69
__PACKAGE__->set_primary_key("id");
90
70
91
71
92
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
72
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4Ox7j2FHewUd09dX9i+T6w
73
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oWFq/xZiO4PyV252MIaY0w
94
74
95
75
96
# You can replace this text with custom content, and it will be preserved on regeneration
76
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MarcMatcher.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MarcMatcher;
1
package Koha::Schema::Result::MarcMatcher;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MarcMatcher
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<marc_matchers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MarcMatcher
19
15
20
=cut
16
=cut
21
17
Lines 75-91 __PACKAGE__->add_columns( Link Here
75
  "threshold",
71
  "threshold",
76
  { data_type => "integer", default_value => 0, is_nullable => 0 },
72
  { data_type => "integer", default_value => 0, is_nullable => 0 },
77
);
73
);
78
79
=head1 PRIMARY KEY
80
81
=over 4
82
83
=item * L</matcher_id>
84
85
=back
86
87
=cut
88
89
__PACKAGE__->set_primary_key("matcher_id");
74
__PACKAGE__->set_primary_key("matcher_id");
90
75
91
=head1 RELATIONS
76
=head1 RELATIONS
Lines 136-143 __PACKAGE__->has_many( Link Here
136
);
121
);
137
122
138
123
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
124
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2K4K9wfjRlJJKDztPgHJDA
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yYrEPc3D55gclg2TBbmgOQ
141
126
142
127
143
# You can replace this text with custom content, and it will be preserved on regeneration
128
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MarcSubfieldStructure.pm (-25 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MarcSubfieldStructure;
1
package Koha::Schema::Result::MarcSubfieldStructure;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MarcSubfieldStructure
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<marc_subfield_structure>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MarcSubfieldStructure
19
15
20
=cut
16
=cut
21
17
Lines 172-197 __PACKAGE__->add_columns( Link Here
172
  "maxlength",
168
  "maxlength",
173
  { data_type => "integer", default_value => 9999, is_nullable => 0 },
169
  { data_type => "integer", default_value => 9999, is_nullable => 0 },
174
);
170
);
175
176
=head1 PRIMARY KEY
177
178
=over 4
179
180
=item * L</frameworkcode>
181
182
=item * L</tagfield>
183
184
=item * L</tagsubfield>
185
186
=back
187
188
=cut
189
190
__PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
171
__PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield");
191
172
192
173
193
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
174
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
194
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4JgqkPKFNSQ90hTeeb30ow
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DoTLvCUUgWR8u2bSwoD1kQ
195
176
196
177
197
# 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/MarcTagStructure.pm (-23 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MarcTagStructure;
1
package Koha::Schema::Result::MarcTagStructure;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MarcTagStructure
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<marc_tag_structure>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MarcTagStructure
19
15
20
=cut
16
=cut
21
17
Lines 87-110 __PACKAGE__->add_columns( Link Here
87
  "frameworkcode",
83
  "frameworkcode",
88
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
84
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
89
);
85
);
90
91
=head1 PRIMARY KEY
92
93
=over 4
94
95
=item * L</frameworkcode>
96
97
=item * L</tagfield>
98
99
=back
100
101
=cut
102
103
__PACKAGE__->set_primary_key("frameworkcode", "tagfield");
86
__PACKAGE__->set_primary_key("frameworkcode", "tagfield");
104
87
105
88
106
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
89
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TvdQBCX3rEhJxxqGcqrpWw
90
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NScxQQdqEbp7o8jmljIehw
108
91
109
92
110
# You can replace this text with custom content, and it will be preserved on regeneration
93
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Matchcheck.pm (-24 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Matchcheck;
1
package Koha::Schema::Result::Matchcheck;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Matchcheck
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<matchchecks>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Matchcheck
19
15
20
=cut
16
=cut
21
17
Lines 59-75 __PACKAGE__->add_columns( Link Here
59
  "target_matchpoint_id",
55
  "target_matchpoint_id",
60
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61
);
57
);
62
63
=head1 PRIMARY KEY
64
65
=over 4
66
67
=item * L</matchcheck_id>
68
69
=back
70
71
=cut
72
73
__PACKAGE__->set_primary_key("matchcheck_id");
58
__PACKAGE__->set_primary_key("matchcheck_id");
74
59
75
=head1 RELATIONS
60
=head1 RELATIONS
Lines 86-92 __PACKAGE__->belongs_to( Link Here
86
  "matcher",
71
  "matcher",
87
  "Koha::Schema::Result::MarcMatcher",
72
  "Koha::Schema::Result::MarcMatcher",
88
  { matcher_id => "matcher_id" },
73
  { matcher_id => "matcher_id" },
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
  { on_delete => "CASCADE", on_update => "CASCADE" },
90
);
75
);
91
76
92
=head2 source_matchpoint
77
=head2 source_matchpoint
Lines 101-107 __PACKAGE__->belongs_to( Link Here
101
  "source_matchpoint",
86
  "source_matchpoint",
102
  "Koha::Schema::Result::Matchpoint",
87
  "Koha::Schema::Result::Matchpoint",
103
  { matchpoint_id => "source_matchpoint_id" },
88
  { matchpoint_id => "source_matchpoint_id" },
104
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89
  { on_delete => "CASCADE", on_update => "CASCADE" },
105
);
90
);
106
91
107
=head2 target_matchpoint
92
=head2 target_matchpoint
Lines 116-127 __PACKAGE__->belongs_to( Link Here
116
  "target_matchpoint",
101
  "target_matchpoint",
117
  "Koha::Schema::Result::Matchpoint",
102
  "Koha::Schema::Result::Matchpoint",
118
  { matchpoint_id => "target_matchpoint_id" },
103
  { matchpoint_id => "target_matchpoint_id" },
119
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
104
  { on_delete => "CASCADE", on_update => "CASCADE" },
120
);
105
);
121
106
122
107
123
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
108
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3G4E3DxiD6lCTP7a569BQg
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1ubsZGCgABRQeLtXBkmslQ
125
110
126
111
127
# You can replace this text with custom content, and it will be preserved on regeneration
112
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MatcherMatchpoint.pm (-12 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MatcherMatchpoint;
1
package Koha::Schema::Result::MatcherMatchpoint;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MatcherMatchpoint
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<matcher_matchpoints>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MatcherMatchpoint
19
15
20
=cut
16
=cut
21
17
Lines 58-64 __PACKAGE__->belongs_to( Link Here
58
  "matcher",
54
  "matcher",
59
  "Koha::Schema::Result::MarcMatcher",
55
  "Koha::Schema::Result::MarcMatcher",
60
  { matcher_id => "matcher_id" },
56
  { matcher_id => "matcher_id" },
61
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
57
  { on_delete => "CASCADE", on_update => "CASCADE" },
62
);
58
);
63
59
64
=head2 matchpoint
60
=head2 matchpoint
Lines 73-84 __PACKAGE__->belongs_to( Link Here
73
  "matchpoint",
69
  "matchpoint",
74
  "Koha::Schema::Result::Matchpoint",
70
  "Koha::Schema::Result::Matchpoint",
75
  { matchpoint_id => "matchpoint_id" },
71
  { matchpoint_id => "matchpoint_id" },
76
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
72
  { on_delete => "CASCADE", on_update => "CASCADE" },
77
);
73
);
78
74
79
75
80
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
76
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
81
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W2mZNvJSe3CC0M52hqJsJg
77
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m5NgNKuWc8hK6qYt58WJ7w
82
78
83
79
84
# You can replace this text with custom content, and it will be preserved on regeneration
80
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Matchpoint.pm (-36 / +21 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Matchpoint;
1
package Koha::Schema::Result::Matchpoint;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Matchpoint
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<matchpoints>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Matchpoint
19
15
20
=cut
16
=cut
21
17
Lines 60-76 __PACKAGE__->add_columns( Link Here
60
  "score",
56
  "score",
61
  { data_type => "integer", default_value => 0, is_nullable => 0 },
57
  { data_type => "integer", default_value => 0, is_nullable => 0 },
62
);
58
);
63
64
=head1 PRIMARY KEY
65
66
=over 4
67
68
=item * L</matchpoint_id>
69
70
=back
71
72
=cut
73
74
__PACKAGE__->set_primary_key("matchpoint_id");
59
__PACKAGE__->set_primary_key("matchpoint_id");
75
60
76
=head1 RELATIONS
61
=head1 RELATIONS
Lines 105-125 __PACKAGE__->has_many( Link Here
105
  { cascade_copy => 0, cascade_delete => 0 },
90
  { cascade_copy => 0, cascade_delete => 0 },
106
);
91
);
107
92
108
=head2 matcher
109
110
Type: belongs_to
111
112
Related object: L<Koha::Schema::Result::MarcMatcher>
113
114
=cut
115
116
__PACKAGE__->belongs_to(
117
  "matcher",
118
  "Koha::Schema::Result::MarcMatcher",
119
  { matcher_id => "matcher_id" },
120
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
121
);
122
123
=head2 matcher_matchpoints
93
=head2 matcher_matchpoints
124
94
125
Type: has_many
95
Type: has_many
Lines 150-158 __PACKAGE__->has_many( Link Here
150
  { cascade_copy => 0, cascade_delete => 0 },
120
  { cascade_copy => 0, cascade_delete => 0 },
151
);
121
);
152
122
123
=head2 matcher
124
125
Type: belongs_to
126
127
Related object: L<Koha::Schema::Result::MarcMatcher>
128
129
=cut
130
131
__PACKAGE__->belongs_to(
132
  "matcher",
133
  "Koha::Schema::Result::MarcMatcher",
134
  { matcher_id => "matcher_id" },
135
  { on_delete => "CASCADE", on_update => "CASCADE" },
136
);
137
153
138
154
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
139
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
155
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KvZ0QM+OoJ+xaUKdkPGASg
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4l0zCiX04HlyYtLjzyRAig
156
141
157
142
158
# You can replace this text with custom content, and it will be preserved on regeneration
143
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MatchpointComponent.pm (-35 / +20 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MatchpointComponent;
1
package Koha::Schema::Result::MatchpointComponent;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MatchpointComponent
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<matchpoint_components>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MatchpointComponent
19
15
20
=cut
16
=cut
21
17
Lines 91-110 __PACKAGE__->add_columns( Link Here
91
  "length",
87
  "length",
92
  { data_type => "integer", default_value => 0, is_nullable => 0 },
88
  { data_type => "integer", default_value => 0, is_nullable => 0 },
93
);
89
);
90
__PACKAGE__->set_primary_key("matchpoint_component_id");
94
91
95
=head1 PRIMARY KEY
92
=head1 RELATIONS
96
93
97
=over 4
94
=head2 matchpoint_component_norms
98
95
99
=item * L</matchpoint_component_id>
96
Type: has_many
100
97
101
=back
98
Related object: L<Koha::Schema::Result::MatchpointComponentNorm>
102
99
103
=cut
100
=cut
104
101
105
__PACKAGE__->set_primary_key("matchpoint_component_id");
102
__PACKAGE__->has_many(
106
103
  "matchpoint_component_norms",
107
=head1 RELATIONS
104
  "Koha::Schema::Result::MatchpointComponentNorm",
105
  {
106
    "foreign.matchpoint_component_id" => "self.matchpoint_component_id",
107
  },
108
  { cascade_copy => 0, cascade_delete => 0 },
109
);
108
110
109
=head2 matchpoint
111
=head2 matchpoint
110
112
Lines 118-146 __PACKAGE__->belongs_to( Link Here
118
  "matchpoint",
120
  "matchpoint",
119
  "Koha::Schema::Result::Matchpoint",
121
  "Koha::Schema::Result::Matchpoint",
120
  { matchpoint_id => "matchpoint_id" },
122
  { matchpoint_id => "matchpoint_id" },
121
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
123
  { on_delete => "CASCADE", on_update => "CASCADE" },
122
);
123
124
=head2 matchpoint_component_norms
125
126
Type: has_many
127
128
Related object: L<Koha::Schema::Result::MatchpointComponentNorm>
129
130
=cut
131
132
__PACKAGE__->has_many(
133
  "matchpoint_component_norms",
134
  "Koha::Schema::Result::MatchpointComponentNorm",
135
  {
136
    "foreign.matchpoint_component_id" => "self.matchpoint_component_id",
137
  },
138
  { cascade_copy => 0, cascade_delete => 0 },
139
);
124
);
140
125
141
126
142
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
127
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R9niKe/wGJXD+ZVkIP5Wpg
128
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ps466vmcyEitpjMqM7qa/A
144
129
145
130
146
# You can replace this text with custom content, and it will be preserved on regeneration
131
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MatchpointComponentNorm.pm (-11 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MatchpointComponentNorm;
1
package Koha::Schema::Result::MatchpointComponentNorm;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MatchpointComponentNorm
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<matchpoint_component_norms>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MatchpointComponentNorm
19
15
20
=cut
16
=cut
21
17
Lines 73-84 __PACKAGE__->belongs_to( Link Here
73
  "matchpoint_component",
69
  "matchpoint_component",
74
  "Koha::Schema::Result::MatchpointComponent",
70
  "Koha::Schema::Result::MatchpointComponent",
75
  { matchpoint_component_id => "matchpoint_component_id" },
71
  { matchpoint_component_id => "matchpoint_component_id" },
76
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
72
  { on_delete => "CASCADE", on_update => "CASCADE" },
77
);
73
);
78
74
79
75
80
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
76
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
81
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Aj5cUNNx7G5iq0w0AFVgtA
77
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:35ISTi/NL/z/GhcnhwXXMQ
82
78
83
79
84
# You can replace this text with custom content, and it will be preserved on regeneration
80
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Message.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Message;
1
package Koha::Schema::Result::Message;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Message
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<messages>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Message
19
15
20
=cut
16
=cut
21
17
Lines 54-60 __PACKAGE__->table("messages"); Link Here
54
=head2 message_date
50
=head2 message_date
55
51
56
  data_type: 'timestamp'
52
  data_type: 'timestamp'
57
  datetime_undef_if_invalid: 1
58
  default_value: current_timestamp
53
  default_value: current_timestamp
59
  is_nullable: 0
54
  is_nullable: 0
60
55
Lines 73-100 __PACKAGE__->add_columns( Link Here
73
  { data_type => "text", is_nullable => 0 },
68
  { data_type => "text", is_nullable => 0 },
74
  "message_date",
69
  "message_date",
75
  {
70
  {
76
    data_type => "timestamp",
71
    data_type     => "timestamp",
77
    datetime_undef_if_invalid => 1,
78
    default_value => \"current_timestamp",
72
    default_value => \"current_timestamp",
79
    is_nullable => 0,
73
    is_nullable   => 0,
80
  },
74
  },
81
);
75
);
82
83
=head1 PRIMARY KEY
84
85
=over 4
86
87
=item * L</message_id>
88
89
=back
90
91
=cut
92
93
__PACKAGE__->set_primary_key("message_id");
76
__PACKAGE__->set_primary_key("message_id");
94
77
95
78
96
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
79
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iq+Uo9eMnkDgUQsRR6VFUA
80
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hThXo01h0VSbjJepDAEaRg
98
81
99
82
100
# You can replace this text with custom content, and it will be preserved on regeneration
83
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MessageAttribute.pm (-34 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MessageAttribute;
1
package Koha::Schema::Result::MessageAttribute;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MessageAttribute
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<message_attributes>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MessageAttribute
19
15
20
=cut
16
=cut
21
17
Lines 52-82 __PACKAGE__->add_columns( Link Here
52
  "takes_days",
48
  "takes_days",
53
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
49
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
54
);
50
);
55
56
=head1 PRIMARY KEY
57
58
=over 4
59
60
=item * L</message_attribute_id>
61
62
=back
63
64
=cut
65
66
__PACKAGE__->set_primary_key("message_attribute_id");
51
__PACKAGE__->set_primary_key("message_attribute_id");
67
68
=head1 UNIQUE CONSTRAINTS
69
70
=head2 C<message_name>
71
72
=over 4
73
74
=item * L</message_name>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->add_unique_constraint("message_name", ["message_name"]);
52
__PACKAGE__->add_unique_constraint("message_name", ["message_name"]);
81
53
82
=head1 RELATIONS
54
=head1 RELATIONS
Lines 112-119 __PACKAGE__->has_many( Link Here
112
);
84
);
113
85
114
86
115
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
87
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N033AvWwG2CDBDuTj2unqQ
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A4UCx15D92JsfqIIdo7J9Q
117
89
118
90
119
# You can replace this text with custom content, and it will be preserved on regeneration
91
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MessageQueue.pm (-21 / +10 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MessageQueue;
1
package Koha::Schema::Result::MessageQueue;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MessageQueue
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<message_queue>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MessageQueue
19
15
20
=cut
16
=cut
21
17
Lines 73-79 __PACKAGE__->table("message_queue"); Link Here
73
=head2 time_queued
69
=head2 time_queued
74
70
75
  data_type: 'timestamp'
71
  data_type: 'timestamp'
76
  datetime_undef_if_invalid: 1
77
  default_value: current_timestamp
72
  default_value: current_timestamp
78
  is_nullable: 0
73
  is_nullable: 0
79
74
Lines 118-127 __PACKAGE__->add_columns( Link Here
118
  },
113
  },
119
  "time_queued",
114
  "time_queued",
120
  {
115
  {
121
    data_type => "timestamp",
116
    data_type     => "timestamp",
122
    datetime_undef_if_invalid => 1,
123
    default_value => \"current_timestamp",
117
    default_value => \"current_timestamp",
124
    is_nullable => 0,
118
    is_nullable   => 0,
125
  },
119
  },
126
  "to_address",
120
  "to_address",
127
  { data_type => "mediumtext", is_nullable => 1 },
121
  { data_type => "mediumtext", is_nullable => 1 },
Lines 145-156 __PACKAGE__->belongs_to( Link Here
145
  "borrowernumber",
139
  "borrowernumber",
146
  "Koha::Schema::Result::Borrower",
140
  "Koha::Schema::Result::Borrower",
147
  { borrowernumber => "borrowernumber" },
141
  { borrowernumber => "borrowernumber" },
148
  {
142
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
149
    is_deferrable => 1,
150
    join_type     => "LEFT",
151
    on_delete     => "CASCADE",
152
    on_update     => "CASCADE",
153
  },
154
);
143
);
155
144
156
=head2 message_transport_type
145
=head2 message_transport_type
Lines 165-176 __PACKAGE__->belongs_to( Link Here
165
  "message_transport_type",
154
  "message_transport_type",
166
  "Koha::Schema::Result::MessageTransportType",
155
  "Koha::Schema::Result::MessageTransportType",
167
  { message_transport_type => "message_transport_type" },
156
  { message_transport_type => "message_transport_type" },
168
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
157
  { on_delete => "CASCADE", on_update => "CASCADE" },
169
);
158
);
170
159
171
160
172
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
161
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+gmGYPCtwCYKHAzfd9xByQ
162
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CpGYS1PRemUgwE95tvJitg
174
163
175
164
176
# You can replace this text with custom content, and it will be preserved on regeneration
165
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MessageTransport.pm (-46 / +27 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MessageTransport;
1
package Koha::Schema::Result::MessageTransport;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MessageTransport
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<message_transports>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MessageTransport
19
15
20
=cut
16
=cut
21
17
Lines 100-143 __PACKAGE__->add_columns( Link Here
100
    size => 10,
96
    size => 10,
101
  },
97
  },
102
);
98
);
103
104
=head1 PRIMARY KEY
105
106
=over 4
107
108
=item * L</message_attribute_id>
109
110
=item * L</message_transport_type>
111
112
=item * L</is_digest>
113
114
=back
115
116
=cut
117
118
__PACKAGE__->set_primary_key("message_attribute_id", "message_transport_type", "is_digest");
99
__PACKAGE__->set_primary_key("message_attribute_id", "message_transport_type", "is_digest");
119
100
120
=head1 RELATIONS
101
=head1 RELATIONS
121
102
122
=head2 letter
123
124
Type: belongs_to
125
126
Related object: L<Koha::Schema::Result::Letter>
127
128
=cut
129
130
__PACKAGE__->belongs_to(
131
  "letter",
132
  "Koha::Schema::Result::Letter",
133
  {
134
    branchcode => "branchcode",
135
    code => "letter_code",
136
    module => "letter_module",
137
  },
138
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
139
);
140
141
=head2 message_attribute
103
=head2 message_attribute
142
104
143
Type: belongs_to
105
Type: belongs_to
Lines 150-156 __PACKAGE__->belongs_to( Link Here
150
  "message_attribute",
112
  "message_attribute",
151
  "Koha::Schema::Result::MessageAttribute",
113
  "Koha::Schema::Result::MessageAttribute",
152
  { message_attribute_id => "message_attribute_id" },
114
  { message_attribute_id => "message_attribute_id" },
153
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
115
  { on_delete => "CASCADE", on_update => "CASCADE" },
154
);
116
);
155
117
156
=head2 message_transport_type
118
=head2 message_transport_type
Lines 165-176 __PACKAGE__->belongs_to( Link Here
165
  "message_transport_type",
127
  "message_transport_type",
166
  "Koha::Schema::Result::MessageTransportType",
128
  "Koha::Schema::Result::MessageTransportType",
167
  { message_transport_type => "message_transport_type" },
129
  { message_transport_type => "message_transport_type" },
168
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
130
  { on_delete => "CASCADE", on_update => "CASCADE" },
131
);
132
133
=head2 letter
134
135
Type: belongs_to
136
137
Related object: L<Koha::Schema::Result::Letter>
138
139
=cut
140
141
__PACKAGE__->belongs_to(
142
  "letter",
143
  "Koha::Schema::Result::Letter",
144
  {
145
    branchcode => "branchcode",
146
    code => "letter_code",
147
    module => "letter_module",
148
  },
149
  { on_delete => "CASCADE", on_update => "CASCADE" },
169
);
150
);
170
151
171
152
172
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
153
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P4Bsq0A7/imUhRBRnD5HrQ
154
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uTLDy+O9IJpX4CmcaJmPMg
174
155
175
156
176
# You can replace this text with custom content, and it will be preserved on regeneration
157
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MessageTransportType.pm (-35 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::MessageTransportType;
1
package Koha::Schema::Result::MessageTransportType;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::MessageTransportType
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<message_transport_types>
11
12
=head1 NAME
13
14
Koha::Schema::Result::MessageTransportType
19
15
20
=cut
16
=cut
21
17
Lines 35-51 __PACKAGE__->add_columns( Link Here
35
  "message_transport_type",
31
  "message_transport_type",
36
  { data_type => "varchar", is_nullable => 0, size => 20 },
32
  { data_type => "varchar", is_nullable => 0, size => 20 },
37
);
33
);
38
39
=head1 PRIMARY KEY
40
41
=over 4
42
43
=item * L</message_transport_type>
44
45
=back
46
47
=cut
48
49
__PACKAGE__->set_primary_key("message_transport_type");
34
__PACKAGE__->set_primary_key("message_transport_type");
50
35
51
=head1 RELATIONS
36
=head1 RELATIONS
Lines 101-123 __PACKAGE__->has_many( Link Here
101
  { cascade_copy => 0, cascade_delete => 0 },
86
  { cascade_copy => 0, cascade_delete => 0 },
102
);
87
);
103
88
104
=head2 borrower_message_preferences
105
106
Type: many_to_many
107
108
Composing rels: L</borrower_message_transport_preferences> -> borrower_message_preference
109
110
=cut
111
112
__PACKAGE__->many_to_many(
113
  "borrower_message_preferences",
114
  "borrower_message_transport_preferences",
115
  "borrower_message_preference",
116
);
117
118
89
119
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
90
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
120
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UApxVVoE1dZpL6HP1kytJQ
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T3ZjS97UrFDwMZmjYxJg8w
121
92
122
93
123
# You can replace this text with custom content, and it will be preserved on regeneration
94
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/NeedMergeAuthority.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::NeedMergeAuthority;
1
package Koha::Schema::Result::NeedMergeAuthority;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::NeedMergeAuthority
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<need_merge_authorities>
11
12
=head1 NAME
13
14
Koha::Schema::Result::NeedMergeAuthority
19
15
20
=cut
16
=cut
21
17
Lines 50-71 __PACKAGE__->add_columns( Link Here
50
  "done",
46
  "done",
51
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
47
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
52
);
48
);
53
54
=head1 PRIMARY KEY
55
56
=over 4
57
58
=item * L</id>
59
60
=back
61
62
=cut
63
64
__PACKAGE__->set_primary_key("id");
49
__PACKAGE__->set_primary_key("id");
65
50
66
51
67
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
52
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
68
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BL9ArSyPrmUG0QrrWgoPSw
53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1z93nUqzQgzDUTTt80jzfg
69
54
70
55
71
# You can replace this text with custom content, and it will be preserved on regeneration
56
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Notify.pm (-14 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Notify;
1
package Koha::Schema::Result::Notify;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Notify
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<notifys>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Notify
19
15
20
=cut
16
=cut
21
17
Lines 44-56 __PACKAGE__->table("notifys"); Link Here
44
=head2 notify_date
40
=head2 notify_date
45
41
46
  data_type: 'date'
42
  data_type: 'date'
47
  datetime_undef_if_invalid: 1
48
  is_nullable: 1
43
  is_nullable: 1
49
44
50
=head2 notify_send_date
45
=head2 notify_send_date
51
46
52
  data_type: 'date'
47
  data_type: 'date'
53
  datetime_undef_if_invalid: 1
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
=head2 notify_level
50
=head2 notify_level
Lines 76-84 __PACKAGE__->add_columns( Link Here
76
  "itemnumber",
70
  "itemnumber",
77
  { data_type => "integer", default_value => 0, is_nullable => 0 },
71
  { data_type => "integer", default_value => 0, is_nullable => 0 },
78
  "notify_date",
72
  "notify_date",
79
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
73
  { data_type => "date", is_nullable => 1 },
80
  "notify_send_date",
74
  "notify_send_date",
81
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
75
  { data_type => "date", is_nullable => 1 },
82
  "notify_level",
76
  "notify_level",
83
  { data_type => "integer", default_value => 0, is_nullable => 0 },
77
  { data_type => "integer", default_value => 0, is_nullable => 0 },
84
  "method",
78
  "method",
Lines 86-93 __PACKAGE__->add_columns( Link Here
86
);
80
);
87
81
88
82
89
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
83
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
90
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sQc1HF4rGwsMBh6uFNKUnQ
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TdyJyIFy6gDH3g04LUERKQ
91
85
92
86
93
# You can replace this text with custom content, and it will be preserved on regeneration
87
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OaiSet.pm (-44 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::OaiSet;
1
package Koha::Schema::Result::OaiSet;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::OaiSet
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<oai_sets>
11
12
=head1 NAME
13
14
Koha::Schema::Result::OaiSet
19
15
20
=cut
16
=cut
21
17
Lines 51-81 __PACKAGE__->add_columns( Link Here
51
  "name",
47
  "name",
52
  { data_type => "varchar", is_nullable => 0, size => 80 },
48
  { data_type => "varchar", is_nullable => 0, size => 80 },
53
);
49
);
54
55
=head1 PRIMARY KEY
56
57
=over 4
58
59
=item * L</id>
60
61
=back
62
63
=cut
64
65
__PACKAGE__->set_primary_key("id");
50
__PACKAGE__->set_primary_key("id");
66
67
=head1 UNIQUE CONSTRAINTS
68
69
=head2 C<spec>
70
71
=over 4
72
73
=item * L</spec>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->add_unique_constraint("spec", ["spec"]);
51
__PACKAGE__->add_unique_constraint("spec", ["spec"]);
80
52
81
=head1 RELATIONS
53
=head1 RELATIONS
Lines 125-143 __PACKAGE__->has_many( Link Here
125
  { cascade_copy => 0, cascade_delete => 0 },
97
  { cascade_copy => 0, cascade_delete => 0 },
126
);
98
);
127
99
128
=head2 biblionumbers
129
130
Type: many_to_many
131
132
Composing rels: L</oai_sets_biblios> -> biblionumber
133
134
=cut
135
136
__PACKAGE__->many_to_many("biblionumbers", "oai_sets_biblios", "biblionumber");
137
138
100
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
101
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3M30E7wFbGbesAfQYyalTw
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZcQ9f3DGZsVA8zZfe1xHLw
141
103
142
104
143
# 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/OaiSetsBiblio.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::OaiSetsBiblio;
1
package Koha::Schema::Result::OaiSetsBiblio;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::OaiSetsBiblio
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<oai_sets_biblios>
11
12
=head1 NAME
13
14
Koha::Schema::Result::OaiSetsBiblio
19
15
20
=cut
16
=cut
21
17
Lines 43-61 __PACKAGE__->add_columns( Link Here
43
  "set_id",
39
  "set_id",
44
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
45
);
41
);
46
47
=head1 PRIMARY KEY
48
49
=over 4
50
51
=item * L</biblionumber>
52
53
=item * L</set_id>
54
55
=back
56
57
=cut
58
59
__PACKAGE__->set_primary_key("biblionumber", "set_id");
42
__PACKAGE__->set_primary_key("biblionumber", "set_id");
60
43
61
=head1 RELATIONS
44
=head1 RELATIONS
Lines 72-78 __PACKAGE__->belongs_to( Link Here
72
  "biblionumber",
55
  "biblionumber",
73
  "Koha::Schema::Result::Biblio",
56
  "Koha::Schema::Result::Biblio",
74
  { biblionumber => "biblionumber" },
57
  { biblionumber => "biblionumber" },
75
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
58
  { on_delete => "CASCADE", on_update => "CASCADE" },
76
);
59
);
77
60
78
=head2 set
61
=head2 set
Lines 87-98 __PACKAGE__->belongs_to( Link Here
87
  "set",
70
  "set",
88
  "Koha::Schema::Result::OaiSet",
71
  "Koha::Schema::Result::OaiSet",
89
  { id => "set_id" },
72
  { id => "set_id" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
91
);
74
);
92
75
93
76
94
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Zl0mhAt8isigZay80Ie6jA
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Eb3cRCkccebsa3FO1igeWA
96
79
97
80
98
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OaiSetsDescription.pm (-11 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::OaiSetsDescription;
1
package Koha::Schema::Result::OaiSetsDescription;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::OaiSetsDescription
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<oai_sets_descriptions>
11
12
=head1 NAME
13
14
Koha::Schema::Result::OaiSetsDescription
19
15
20
=cut
16
=cut
21
17
Lines 58-69 __PACKAGE__->belongs_to( Link Here
58
  "set",
54
  "set",
59
  "Koha::Schema::Result::OaiSet",
55
  "Koha::Schema::Result::OaiSet",
60
  { id => "set_id" },
56
  { id => "set_id" },
61
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
57
  { on_delete => "CASCADE", on_update => "CASCADE" },
62
);
58
);
63
59
64
60
65
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
61
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
66
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W8gqXVcVgEpJUdsKQsPn5A
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:S48c9NrOsCuK43gSuzlu7A
67
63
68
64
69
# You can replace this text with custom content, and it will be preserved on regeneration
65
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OaiSetsMapping.pm (-25 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::OaiSetsMapping;
1
package Koha::Schema::Result::OaiSetsMapping;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::OaiSetsMapping
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<oai_sets_mappings>
11
12
=head1 NAME
13
14
Koha::Schema::Result::OaiSetsMapping
19
15
20
=cut
16
=cut
21
17
Lines 41-53 __PACKAGE__->table("oai_sets_mappings"); Link Here
41
  is_nullable: 0
37
  is_nullable: 0
42
  size: 1
38
  size: 1
43
39
44
=head2 operator
45
46
  data_type: 'varchar'
47
  default_value: 'equal'
48
  is_nullable: 0
49
  size: 8
50
51
=head2 marcvalue
40
=head2 marcvalue
52
41
53
  data_type: 'varchar'
42
  data_type: 'varchar'
Lines 63-75 __PACKAGE__->add_columns( Link Here
63
  { data_type => "char", is_nullable => 0, size => 3 },
52
  { data_type => "char", is_nullable => 0, size => 3 },
64
  "marcsubfield",
53
  "marcsubfield",
65
  { data_type => "char", is_nullable => 0, size => 1 },
54
  { data_type => "char", is_nullable => 0, size => 1 },
66
  "operator",
67
  {
68
    data_type => "varchar",
69
    default_value => "equal",
70
    is_nullable => 0,
71
    size => 8,
72
  },
73
  "marcvalue",
55
  "marcvalue",
74
  { data_type => "varchar", is_nullable => 0, size => 80 },
56
  { data_type => "varchar", is_nullable => 0, size => 80 },
75
);
57
);
Lines 88-99 __PACKAGE__->belongs_to( Link Here
88
  "set",
70
  "set",
89
  "Koha::Schema::Result::OaiSet",
71
  "Koha::Schema::Result::OaiSet",
90
  { id => "set_id" },
72
  { id => "set_id" },
91
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
92
);
74
);
93
75
94
76
95
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A2fchnI85JftSuruZ1CykQ
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IBiDgVz+c+dCY/ZHwHEzzQ
97
79
98
80
99
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OldIssue.pm (-50 / +23 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::OldIssue;
1
package Koha::Schema::Result::OldIssue;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::OldIssue
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<old_issues>
11
12
=head1 NAME
13
14
Koha::Schema::Result::OldIssue
19
15
20
=cut
16
=cut
21
17
Lines 23-28 __PACKAGE__->table("old_issues"); Link Here
23
19
24
=head1 ACCESSORS
20
=head1 ACCESSORS
25
21
22
=head2 issue_id
23
24
  data_type: 'integer'
25
  is_auto_increment: 1
26
  is_nullable: 0
27
26
=head2 borrowernumber
28
=head2 borrowernumber
27
29
28
  data_type: 'integer'
30
  data_type: 'integer'
Lines 38-44 __PACKAGE__->table("old_issues"); Link Here
38
=head2 date_due
40
=head2 date_due
39
41
40
  data_type: 'datetime'
42
  data_type: 'datetime'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
43
  is_nullable: 1
43
44
44
=head2 branchcode
45
=head2 branchcode
Lines 56-68 __PACKAGE__->table("old_issues"); Link Here
56
=head2 returndate
57
=head2 returndate
57
58
58
  data_type: 'datetime'
59
  data_type: 'datetime'
59
  datetime_undef_if_invalid: 1
60
  is_nullable: 1
60
  is_nullable: 1
61
61
62
=head2 lastreneweddate
62
=head2 lastreneweddate
63
63
64
  data_type: 'datetime'
64
  data_type: 'datetime'
65
  datetime_undef_if_invalid: 1
66
  is_nullable: 1
65
  is_nullable: 1
67
66
68
=head2 return
67
=head2 return
Lines 79-141 __PACKAGE__->table("old_issues"); Link Here
79
=head2 timestamp
78
=head2 timestamp
80
79
81
  data_type: 'timestamp'
80
  data_type: 'timestamp'
82
  datetime_undef_if_invalid: 1
83
  default_value: current_timestamp
81
  default_value: current_timestamp
84
  is_nullable: 0
82
  is_nullable: 0
85
83
86
=head2 issuedate
84
=head2 issuedate
87
85
88
  data_type: 'datetime'
86
  data_type: 'datetime'
89
  datetime_undef_if_invalid: 1
90
  is_nullable: 1
87
  is_nullable: 1
91
88
92
=cut
89
=cut
93
90
94
__PACKAGE__->add_columns(
91
__PACKAGE__->add_columns(
92
  "issue_id",
93
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
95
  "borrowernumber",
94
  "borrowernumber",
96
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
95
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97
  "itemnumber",
96
  "itemnumber",
98
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
99
  "date_due",
98
  "date_due",
100
  {
99
  { data_type => "datetime", is_nullable => 1 },
101
    data_type => "datetime",
102
    datetime_undef_if_invalid => 1,
103
    is_nullable => 1,
104
  },
105
  "branchcode",
100
  "branchcode",
106
  { data_type => "varchar", is_nullable => 1, size => 10 },
101
  { data_type => "varchar", is_nullable => 1, size => 10 },
107
  "issuingbranch",
102
  "issuingbranch",
108
  { data_type => "varchar", is_nullable => 1, size => 18 },
103
  { data_type => "varchar", is_nullable => 1, size => 18 },
109
  "returndate",
104
  "returndate",
110
  {
105
  { data_type => "datetime", is_nullable => 1 },
111
    data_type => "datetime",
112
    datetime_undef_if_invalid => 1,
113
    is_nullable => 1,
114
  },
115
  "lastreneweddate",
106
  "lastreneweddate",
116
  {
107
  { data_type => "datetime", is_nullable => 1 },
117
    data_type => "datetime",
118
    datetime_undef_if_invalid => 1,
119
    is_nullable => 1,
120
  },
121
  "return",
108
  "return",
122
  { data_type => "varchar", is_nullable => 1, size => 4 },
109
  { data_type => "varchar", is_nullable => 1, size => 4 },
123
  "renewals",
110
  "renewals",
124
  { data_type => "tinyint", is_nullable => 1 },
111
  { data_type => "tinyint", is_nullable => 1 },
125
  "timestamp",
112
  "timestamp",
126
  {
113
  {
127
    data_type => "timestamp",
114
    data_type     => "timestamp",
128
    datetime_undef_if_invalid => 1,
129
    default_value => \"current_timestamp",
115
    default_value => \"current_timestamp",
130
    is_nullable => 0,
116
    is_nullable   => 0,
131
  },
117
  },
132
  "issuedate",
118
  "issuedate",
133
  {
119
  { data_type => "datetime", is_nullable => 1 },
134
    data_type => "datetime",
135
    datetime_undef_if_invalid => 1,
136
    is_nullable => 1,
137
  },
138
);
120
);
121
__PACKAGE__->set_primary_key("issue_id");
139
122
140
=head1 RELATIONS
123
=head1 RELATIONS
141
124
Lines 151-162 __PACKAGE__->belongs_to( Link Here
151
  "borrowernumber",
134
  "borrowernumber",
152
  "Koha::Schema::Result::Borrower",
135
  "Koha::Schema::Result::Borrower",
153
  { borrowernumber => "borrowernumber" },
136
  { borrowernumber => "borrowernumber" },
154
  {
137
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
155
    is_deferrable => 1,
156
    join_type     => "LEFT",
157
    on_delete     => "CASCADE",
158
    on_update     => "CASCADE",
159
  },
160
);
138
);
161
139
162
=head2 itemnumber
140
=head2 itemnumber
Lines 171-187 __PACKAGE__->belongs_to( Link Here
171
  "itemnumber",
149
  "itemnumber",
172
  "Koha::Schema::Result::Item",
150
  "Koha::Schema::Result::Item",
173
  { itemnumber => "itemnumber" },
151
  { itemnumber => "itemnumber" },
174
  {
152
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
175
    is_deferrable => 1,
176
    join_type     => "LEFT",
177
    on_delete     => "CASCADE",
178
    on_update     => "CASCADE",
179
  },
180
);
153
);
181
154
182
155
183
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
156
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
184
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uPOxNROoMMRZ0qZsXsxEjA
157
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:anDKAXiAF/glBH5ihYInOA
185
158
186
159
187
# You can replace this text with custom content, and it will be preserved on regeneration
160
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OldReserve.pm (-71 / +28 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::OldReserve;
1
package Koha::Schema::Result::OldReserve;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::OldReserve
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<old_reserves>
11
12
=head1 NAME
13
14
Koha::Schema::Result::OldReserve
19
15
20
=cut
16
=cut
21
17
Lines 37-43 __PACKAGE__->table("old_reserves"); Link Here
37
=head2 reservedate
33
=head2 reservedate
38
34
39
  data_type: 'date'
35
  data_type: 'date'
40
  datetime_undef_if_invalid: 1
41
  is_nullable: 1
36
  is_nullable: 1
42
37
43
=head2 biblionumber
38
=head2 biblionumber
Lines 61-79 __PACKAGE__->table("old_reserves"); Link Here
61
=head2 notificationdate
56
=head2 notificationdate
62
57
63
  data_type: 'date'
58
  data_type: 'date'
64
  datetime_undef_if_invalid: 1
65
  is_nullable: 1
59
  is_nullable: 1
66
60
67
=head2 reminderdate
61
=head2 reminderdate
68
62
69
  data_type: 'date'
63
  data_type: 'date'
70
  datetime_undef_if_invalid: 1
71
  is_nullable: 1
64
  is_nullable: 1
72
65
73
=head2 cancellationdate
66
=head2 cancellationdate
74
67
75
  data_type: 'date'
68
  data_type: 'date'
76
  datetime_undef_if_invalid: 1
77
  is_nullable: 1
69
  is_nullable: 1
78
70
79
=head2 reservenotes
71
=head2 reservenotes
Lines 95-101 __PACKAGE__->table("old_reserves"); Link Here
95
=head2 timestamp
87
=head2 timestamp
96
88
97
  data_type: 'timestamp'
89
  data_type: 'timestamp'
98
  datetime_undef_if_invalid: 1
99
  default_value: current_timestamp
90
  default_value: current_timestamp
100
  is_nullable: 0
91
  is_nullable: 0
101
92
Lines 108-120 __PACKAGE__->table("old_reserves"); Link Here
108
=head2 waitingdate
99
=head2 waitingdate
109
100
110
  data_type: 'date'
101
  data_type: 'date'
111
  datetime_undef_if_invalid: 1
112
  is_nullable: 1
102
  is_nullable: 1
113
103
114
=head2 expirationdate
104
=head2 expirationdate
115
105
116
  data_type: 'date'
106
  data_type: 'date'
117
  datetime_undef_if_invalid: 1
118
  is_nullable: 1
107
  is_nullable: 1
119
108
120
=head2 lowestpriority
109
=head2 lowestpriority
Lines 131-137 __PACKAGE__->table("old_reserves"); Link Here
131
=head2 suspend_until
120
=head2 suspend_until
132
121
133
  data_type: 'datetime'
122
  data_type: 'datetime'
134
  datetime_undef_if_invalid: 1
135
  is_nullable: 1
123
  is_nullable: 1
136
124
137
=cut
125
=cut
Lines 142-148 __PACKAGE__->add_columns( Link Here
142
  "borrowernumber",
130
  "borrowernumber",
143
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
131
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
144
  "reservedate",
132
  "reservedate",
145
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
133
  { data_type => "date", is_nullable => 1 },
146
  "biblionumber",
134
  "biblionumber",
147
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
135
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
148
  "constrainttype",
136
  "constrainttype",
Lines 150-160 __PACKAGE__->add_columns( Link Here
150
  "branchcode",
138
  "branchcode",
151
  { data_type => "varchar", is_nullable => 1, size => 10 },
139
  { data_type => "varchar", is_nullable => 1, size => 10 },
152
  "notificationdate",
140
  "notificationdate",
153
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
141
  { data_type => "date", is_nullable => 1 },
154
  "reminderdate",
142
  "reminderdate",
155
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
143
  { data_type => "date", is_nullable => 1 },
156
  "cancellationdate",
144
  "cancellationdate",
157
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
145
  { data_type => "date", is_nullable => 1 },
158
  "reservenotes",
146
  "reservenotes",
159
  { data_type => "mediumtext", is_nullable => 1 },
147
  { data_type => "mediumtext", is_nullable => 1 },
160
  "priority",
148
  "priority",
Lines 163-243 __PACKAGE__->add_columns( Link Here
163
  { data_type => "varchar", is_nullable => 1, size => 1 },
151
  { data_type => "varchar", is_nullable => 1, size => 1 },
164
  "timestamp",
152
  "timestamp",
165
  {
153
  {
166
    data_type => "timestamp",
154
    data_type     => "timestamp",
167
    datetime_undef_if_invalid => 1,
168
    default_value => \"current_timestamp",
155
    default_value => \"current_timestamp",
169
    is_nullable => 0,
156
    is_nullable   => 0,
170
  },
157
  },
171
  "itemnumber",
158
  "itemnumber",
172
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
159
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
173
  "waitingdate",
160
  "waitingdate",
174
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
161
  { data_type => "date", is_nullable => 1 },
175
  "expirationdate",
162
  "expirationdate",
176
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
163
  { data_type => "date", is_nullable => 1 },
177
  "lowestpriority",
164
  "lowestpriority",
178
  { data_type => "tinyint", is_nullable => 0 },
165
  { data_type => "tinyint", is_nullable => 0 },
179
  "suspend",
166
  "suspend",
180
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
167
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
181
  "suspend_until",
168
  "suspend_until",
182
  {
169
  { data_type => "datetime", is_nullable => 1 },
183
    data_type => "datetime",
184
    datetime_undef_if_invalid => 1,
185
    is_nullable => 1,
186
  },
187
);
170
);
188
189
=head1 PRIMARY KEY
190
191
=over 4
192
193
=item * L</reserve_id>
194
195
=back
196
197
=cut
198
199
__PACKAGE__->set_primary_key("reserve_id");
171
__PACKAGE__->set_primary_key("reserve_id");
200
172
201
=head1 RELATIONS
173
=head1 RELATIONS
202
174
203
=head2 biblionumber
175
=head2 borrowernumber
204
176
205
Type: belongs_to
177
Type: belongs_to
206
178
207
Related object: L<Koha::Schema::Result::Biblio>
179
Related object: L<Koha::Schema::Result::Borrower>
208
180
209
=cut
181
=cut
210
182
211
__PACKAGE__->belongs_to(
183
__PACKAGE__->belongs_to(
212
  "biblionumber",
184
  "borrowernumber",
213
  "Koha::Schema::Result::Biblio",
185
  "Koha::Schema::Result::Borrower",
214
  { biblionumber => "biblionumber" },
186
  { borrowernumber => "borrowernumber" },
215
  {
187
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
216
    is_deferrable => 1,
217
    join_type     => "LEFT",
218
    on_delete     => "CASCADE",
219
    on_update     => "CASCADE",
220
  },
221
);
188
);
222
189
223
=head2 borrowernumber
190
=head2 biblionumber
224
191
225
Type: belongs_to
192
Type: belongs_to
226
193
227
Related object: L<Koha::Schema::Result::Borrower>
194
Related object: L<Koha::Schema::Result::Biblio>
228
195
229
=cut
196
=cut
230
197
231
__PACKAGE__->belongs_to(
198
__PACKAGE__->belongs_to(
232
  "borrowernumber",
199
  "biblionumber",
233
  "Koha::Schema::Result::Borrower",
200
  "Koha::Schema::Result::Biblio",
234
  { borrowernumber => "borrowernumber" },
201
  { biblionumber => "biblionumber" },
235
  {
202
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
236
    is_deferrable => 1,
237
    join_type     => "LEFT",
238
    on_delete     => "CASCADE",
239
    on_update     => "CASCADE",
240
  },
241
);
203
);
242
204
243
=head2 itemnumber
205
=head2 itemnumber
Lines 252-268 __PACKAGE__->belongs_to( Link Here
252
  "itemnumber",
214
  "itemnumber",
253
  "Koha::Schema::Result::Item",
215
  "Koha::Schema::Result::Item",
254
  { itemnumber => "itemnumber" },
216
  { itemnumber => "itemnumber" },
255
  {
217
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
256
    is_deferrable => 1,
257
    join_type     => "LEFT",
258
    on_delete     => "CASCADE",
259
    on_update     => "CASCADE",
260
  },
261
);
218
);
262
219
263
220
264
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
221
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
265
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g/WiYGPOyzJGtMWiAHvIxA
222
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZLzxJZJINH4TqtWeQUzPYQ
266
223
267
224
268
# You can replace this text with custom content, and it will be preserved on regeneration
225
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OpacNews.pm (-27 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::OpacNews;
1
package Koha::Schema::Result::OpacNews;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::OpacNews
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<opac_news>
11
12
=head1 NAME
13
14
Koha::Schema::Result::OpacNews
19
15
20
=cut
16
=cut
21
17
Lines 53-66 __PACKAGE__->table("opac_news"); Link Here
53
=head2 timestamp
49
=head2 timestamp
54
50
55
  data_type: 'timestamp'
51
  data_type: 'timestamp'
56
  datetime_undef_if_invalid: 1
57
  default_value: current_timestamp
52
  default_value: current_timestamp
58
  is_nullable: 0
53
  is_nullable: 0
59
54
60
=head2 expirationdate
55
=head2 expirationdate
61
56
62
  data_type: 'date'
57
  data_type: 'date'
63
  datetime_undef_if_invalid: 1
64
  is_nullable: 1
58
  is_nullable: 1
65
59
66
=head2 number
60
=head2 number
Lines 86-117 __PACKAGE__->add_columns( Link Here
86
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
80
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
87
  "timestamp",
81
  "timestamp",
88
  {
82
  {
89
    data_type => "timestamp",
83
    data_type     => "timestamp",
90
    datetime_undef_if_invalid => 1,
91
    default_value => \"current_timestamp",
84
    default_value => \"current_timestamp",
92
    is_nullable => 0,
85
    is_nullable   => 0,
93
  },
86
  },
94
  "expirationdate",
87
  "expirationdate",
95
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
88
  { data_type => "date", is_nullable => 1 },
96
  "number",
89
  "number",
97
  { data_type => "integer", is_nullable => 1 },
90
  { data_type => "integer", is_nullable => 1 },
98
);
91
);
99
100
=head1 PRIMARY KEY
101
102
=over 4
103
104
=item * L</idnew>
105
106
=back
107
108
=cut
109
110
__PACKAGE__->set_primary_key("idnew");
92
__PACKAGE__->set_primary_key("idnew");
111
93
112
94
113
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
95
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
114
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0tkil0XyRwcT+abM2XoADw
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jVbNp0WpNQ5YJCcaJGO6eg
115
97
116
98
117
# You can replace this text with custom content, and it will be preserved on regeneration
99
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Overduerule.pm (-23 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Overduerule;
1
package Koha::Schema::Result::Overduerule;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Overduerule
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<overduerules>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Overduerule
19
15
20
=cut
16
=cut
21
17
Lines 116-139 __PACKAGE__->add_columns( Link Here
116
  "debarred3",
112
  "debarred3",
117
  { data_type => "integer", default_value => 0, is_nullable => 1 },
113
  { data_type => "integer", default_value => 0, is_nullable => 1 },
118
);
114
);
119
120
=head1 PRIMARY KEY
121
122
=over 4
123
124
=item * L</branchcode>
125
126
=item * L</categorycode>
127
128
=back
129
130
=cut
131
132
__PACKAGE__->set_primary_key("branchcode", "categorycode");
115
__PACKAGE__->set_primary_key("branchcode", "categorycode");
133
116
134
117
135
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
118
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hP/0cV6iad2dz8kIhCYFjw
119
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h9dZXd+xmnWePfd3qj2MTw
137
120
138
121
139
# You can replace this text with custom content, and it will be preserved on regeneration
122
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Patroncard.pm (-26 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Patroncard;
1
package Koha::Schema::Result::Patroncard;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Patroncard
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<patroncards>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Patroncard
19
15
20
=cut
16
=cut
21
17
Lines 45-51 __PACKAGE__->table("patroncards"); Link Here
45
=head2 timestamp
41
=head2 timestamp
46
42
47
  data_type: 'timestamp'
43
  data_type: 'timestamp'
48
  datetime_undef_if_invalid: 1
49
  default_value: current_timestamp
44
  default_value: current_timestamp
50
  is_nullable: 0
45
  is_nullable: 0
51
46
Lines 60-82 __PACKAGE__->add_columns( Link Here
60
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61
  "timestamp",
56
  "timestamp",
62
  {
57
  {
63
    data_type => "timestamp",
58
    data_type     => "timestamp",
64
    datetime_undef_if_invalid => 1,
65
    default_value => \"current_timestamp",
59
    default_value => \"current_timestamp",
66
    is_nullable => 0,
60
    is_nullable   => 0,
67
  },
61
  },
68
);
62
);
69
70
=head1 PRIMARY KEY
71
72
=over 4
73
74
=item * L</cardid>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->set_primary_key("cardid");
63
__PACKAGE__->set_primary_key("cardid");
81
64
82
=head1 RELATIONS
65
=head1 RELATIONS
Lines 93-104 __PACKAGE__->belongs_to( Link Here
93
  "borrowernumber",
76
  "borrowernumber",
94
  "Koha::Schema::Result::Borrower",
77
  "Koha::Schema::Result::Borrower",
95
  { borrowernumber => "borrowernumber" },
78
  { borrowernumber => "borrowernumber" },
96
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
79
  { on_delete => "CASCADE", on_update => "CASCADE" },
97
);
80
);
98
81
99
82
100
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
83
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZDpN4iw7+y9YP7Dc+ou8lQ
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oLjojkGS+XyFLSzkUqdITQ
102
85
103
86
104
# You can replace this text with custom content, and it will be preserved on regeneration
87
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Patronimage.pm (-23 / +14 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Patronimage;
1
package Koha::Schema::Result::Patronimage;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Patronimage
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<patronimage>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Patronimage
19
15
20
=cut
16
=cut
21
17
Lines 26-31 __PACKAGE__->table("patronimage"); Link Here
26
=head2 borrowernumber
22
=head2 borrowernumber
27
23
28
  data_type: 'integer'
24
  data_type: 'integer'
25
  default_value: 0
29
  is_foreign_key: 1
26
  is_foreign_key: 1
30
  is_nullable: 0
27
  is_nullable: 0
31
28
Lines 44-66 __PACKAGE__->table("patronimage"); Link Here
44
41
45
__PACKAGE__->add_columns(
42
__PACKAGE__->add_columns(
46
  "borrowernumber",
43
  "borrowernumber",
47
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44
  {
45
    data_type      => "integer",
46
    default_value  => 0,
47
    is_foreign_key => 1,
48
    is_nullable    => 0,
49
  },
48
  "mimetype",
50
  "mimetype",
49
  { data_type => "varchar", is_nullable => 0, size => 15 },
51
  { data_type => "varchar", is_nullable => 0, size => 15 },
50
  "imagefile",
52
  "imagefile",
51
  { data_type => "mediumblob", is_nullable => 0 },
53
  { data_type => "mediumblob", is_nullable => 0 },
52
);
54
);
53
54
=head1 PRIMARY KEY
55
56
=over 4
57
58
=item * L</borrowernumber>
59
60
=back
61
62
=cut
63
64
__PACKAGE__->set_primary_key("borrowernumber");
55
__PACKAGE__->set_primary_key("borrowernumber");
65
56
66
=head1 RELATIONS
57
=head1 RELATIONS
Lines 77-88 __PACKAGE__->belongs_to( Link Here
77
  "borrowernumber",
68
  "borrowernumber",
78
  "Koha::Schema::Result::Borrower",
69
  "Koha::Schema::Result::Borrower",
79
  { borrowernumber => "borrowernumber" },
70
  { borrowernumber => "borrowernumber" },
80
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
71
  { on_delete => "CASCADE", on_update => "CASCADE" },
81
);
72
);
82
73
83
74
84
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
75
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uuRGyWlemwOH1PCkvhqxdQ
76
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LbVn0LRb/ofXheGTRfMRGg
86
77
87
78
88
# You can replace this text with custom content, and it will be preserved on regeneration
79
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/PendingOfflineOperation.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::PendingOfflineOperation;
1
package Koha::Schema::Result::PendingOfflineOperation;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::PendingOfflineOperation
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<pending_offline_operations>
11
12
=head1 NAME
13
14
Koha::Schema::Result::PendingOfflineOperation
19
15
20
=cut
16
=cut
21
17
Lines 44-50 __PACKAGE__->table("pending_offline_operations"); Link Here
44
=head2 timestamp
40
=head2 timestamp
45
41
46
  data_type: 'timestamp'
42
  data_type: 'timestamp'
47
  datetime_undef_if_invalid: 1
48
  default_value: current_timestamp
43
  default_value: current_timestamp
49
  is_nullable: 0
44
  is_nullable: 0
50
45
Lines 83-92 __PACKAGE__->add_columns( Link Here
83
  { data_type => "varchar", is_nullable => 0, size => 10 },
78
  { data_type => "varchar", is_nullable => 0, size => 10 },
84
  "timestamp",
79
  "timestamp",
85
  {
80
  {
86
    data_type => "timestamp",
81
    data_type     => "timestamp",
87
    datetime_undef_if_invalid => 1,
88
    default_value => \"current_timestamp",
82
    default_value => \"current_timestamp",
89
    is_nullable => 0,
83
    is_nullable   => 0,
90
  },
84
  },
91
  "action",
85
  "action",
92
  { data_type => "varchar", is_nullable => 0, size => 10 },
86
  { data_type => "varchar", is_nullable => 0, size => 10 },
Lines 97-118 __PACKAGE__->add_columns( Link Here
97
  "amount",
91
  "amount",
98
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
92
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
99
);
93
);
100
101
=head1 PRIMARY KEY
102
103
=over 4
104
105
=item * L</operationid>
106
107
=back
108
109
=cut
110
111
__PACKAGE__->set_primary_key("operationid");
94
__PACKAGE__->set_primary_key("operationid");
112
95
113
96
114
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
97
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
115
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hU8G7b8om2DKesFTwuGrJA
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UwIrLJGKZxKwreelvSarHw
116
99
117
100
118
# You can replace this text with custom content, and it will be preserved on regeneration
101
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Permission.pm (-24 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Permission;
1
package Koha::Schema::Result::Permission;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Permission
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<permissions>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Permission
19
15
20
=cut
16
=cut
21
17
Lines 58-76 __PACKAGE__->add_columns( Link Here
58
  "description",
54
  "description",
59
  { data_type => "varchar", is_nullable => 1, size => 255 },
55
  { data_type => "varchar", is_nullable => 1, size => 255 },
60
);
56
);
61
62
=head1 PRIMARY KEY
63
64
=over 4
65
66
=item * L</module_bit>
67
68
=item * L</code>
69
70
=back
71
72
=cut
73
74
__PACKAGE__->set_primary_key("module_bit", "code");
57
__PACKAGE__->set_primary_key("module_bit", "code");
75
58
76
=head1 RELATIONS
59
=head1 RELATIONS
Lines 87-93 __PACKAGE__->belongs_to( Link Here
87
  "module_bit",
70
  "module_bit",
88
  "Koha::Schema::Result::Userflag",
71
  "Koha::Schema::Result::Userflag",
89
  { bit => "module_bit" },
72
  { bit => "module_bit" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
91
);
74
);
92
75
93
=head2 user_permissions
76
=head2 user_permissions
Lines 109-116 __PACKAGE__->has_many( Link Here
109
);
92
);
110
93
111
94
112
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
95
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ut3lzlxoPPoIIwmhJViV1Q
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nkmnnX0n3zCWQxiIWbn4tQ
114
97
115
98
116
# You can replace this text with custom content, and it will be preserved on regeneration
99
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/PluginData.pm (-23 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::PluginData;
1
package Koha::Schema::Result::PluginData;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::PluginData
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<plugin_data>
11
12
=head1 NAME
13
14
Koha::Schema::Result::PluginData
19
15
20
=cut
16
=cut
21
17
Lines 50-73 __PACKAGE__->add_columns( Link Here
50
  "plugin_value",
46
  "plugin_value",
51
  { data_type => "text", is_nullable => 1 },
47
  { data_type => "text", is_nullable => 1 },
52
);
48
);
53
54
=head1 PRIMARY KEY
55
56
=over 4
57
58
=item * L</plugin_class>
59
60
=item * L</plugin_key>
61
62
=back
63
64
=cut
65
66
__PACKAGE__->set_primary_key("plugin_class", "plugin_key");
49
__PACKAGE__->set_primary_key("plugin_class", "plugin_key");
67
50
68
51
69
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
52
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/incxJUcobgYLR1a9g8cOQ
53
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VCbwjZsVxZCaUm+yvirfXQ
71
54
72
55
73
# You can replace this text with custom content, and it will be preserved on regeneration
56
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Printer.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Printer;
1
package Koha::Schema::Result::Printer;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Printer
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<printers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Printer
19
15
20
=cut
16
=cut
21
17
Lines 52-73 __PACKAGE__->add_columns( Link Here
52
  "printtype",
48
  "printtype",
53
  { data_type => "varchar", is_nullable => 1, size => 20 },
49
  { data_type => "varchar", is_nullable => 1, size => 20 },
54
);
50
);
55
56
=head1 PRIMARY KEY
57
58
=over 4
59
60
=item * L</printername>
61
62
=back
63
64
=cut
65
66
__PACKAGE__->set_primary_key("printername");
51
__PACKAGE__->set_primary_key("printername");
67
52
68
53
69
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
54
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OaIxwtdwn0TJLggwOygC2w
55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ehTuxbZGNE/ZttzJgyNgVw
71
56
72
57
73
# You can replace this text with custom content, and it will be preserved on regeneration
58
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/PrintersProfile.pm (-40 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::PrintersProfile;
1
package Koha::Schema::Result::PrintersProfile;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::PrintersProfile
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<printers_profile>
11
12
=head1 NAME
13
14
Koha::Schema::Result::PrintersProfile
19
15
20
=cut
16
=cut
21
17
Lines 126-170 __PACKAGE__->add_columns( Link Here
126
    size => 15,
122
    size => 15,
127
  },
123
  },
128
);
124
);
129
130
=head1 PRIMARY KEY
131
132
=over 4
133
134
=item * L</profile_id>
135
136
=back
137
138
=cut
139
140
__PACKAGE__->set_primary_key("profile_id");
125
__PACKAGE__->set_primary_key("profile_id");
141
142
=head1 UNIQUE CONSTRAINTS
143
144
=head2 C<printername>
145
146
=over 4
147
148
=item * L</printer_name>
149
150
=item * L</template_id>
151
152
=item * L</paper_bin>
153
154
=item * L</creator>
155
156
=back
157
158
=cut
159
160
__PACKAGE__->add_unique_constraint(
126
__PACKAGE__->add_unique_constraint(
161
  "printername",
127
  "printername",
162
  ["printer_name", "template_id", "paper_bin", "creator"],
128
  ["printer_name", "template_id", "paper_bin", "creator"],
163
);
129
);
164
130
165
131
166
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
132
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
167
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GJid4zfVF0MmMnUn3xyVbA
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F4Whmdn3t/w+GiaBIM2m+A
168
134
169
135
170
# You can replace this text with custom content, and it will be preserved on regeneration
136
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Quote.pm (-27 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Quote;
1
package Koha::Schema::Result::Quote;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Quote
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<quotes>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Quote
19
15
20
=cut
16
=cut
21
17
Lines 42-48 __PACKAGE__->table("quotes"); Link Here
42
=head2 timestamp
38
=head2 timestamp
43
39
44
  data_type: 'datetime'
40
  data_type: 'datetime'
45
  datetime_undef_if_invalid: 1
46
  is_nullable: 0
41
  is_nullable: 0
47
42
48
=cut
43
=cut
Lines 55-82 __PACKAGE__->add_columns( Link Here
55
  "text",
50
  "text",
56
  { data_type => "mediumtext", is_nullable => 0 },
51
  { data_type => "mediumtext", is_nullable => 0 },
57
  "timestamp",
52
  "timestamp",
58
  {
53
  { data_type => "datetime", is_nullable => 0 },
59
    data_type => "datetime",
60
    datetime_undef_if_invalid => 1,
61
    is_nullable => 0,
62
  },
63
);
54
);
64
65
=head1 PRIMARY KEY
66
67
=over 4
68
69
=item * L</id>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("id");
55
__PACKAGE__->set_primary_key("id");
76
56
77
57
78
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
58
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WhRbBrQ4jMV+pjgKnOhErg
59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8sO9ufLJlFIhguJEVC3I8A
80
60
81
61
82
# You can replace this text with custom content, and it will be preserved on regeneration
62
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Rating.pm (-39 / +20 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Rating;
1
package Koha::Schema::Result::Rating;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Rating
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<ratings>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Rating
19
15
20
=cut
16
=cut
21
17
Lines 43-49 __PACKAGE__->table("ratings"); Link Here
43
=head2 timestamp
39
=head2 timestamp
44
40
45
  data_type: 'timestamp'
41
  data_type: 'timestamp'
46
  datetime_undef_if_invalid: 1
47
  default_value: current_timestamp
42
  default_value: current_timestamp
48
  is_nullable: 0
43
  is_nullable: 0
49
44
Lines 58-119 __PACKAGE__->add_columns( Link Here
58
  { data_type => "tinyint", is_nullable => 0 },
53
  { data_type => "tinyint", is_nullable => 0 },
59
  "timestamp",
54
  "timestamp",
60
  {
55
  {
61
    data_type => "timestamp",
56
    data_type     => "timestamp",
62
    datetime_undef_if_invalid => 1,
63
    default_value => \"current_timestamp",
57
    default_value => \"current_timestamp",
64
    is_nullable => 0,
58
    is_nullable   => 0,
65
  },
59
  },
66
);
60
);
67
68
=head1 PRIMARY KEY
69
70
=over 4
71
72
=item * L</borrowernumber>
73
74
=item * L</biblionumber>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->set_primary_key("borrowernumber", "biblionumber");
61
__PACKAGE__->set_primary_key("borrowernumber", "biblionumber");
81
62
82
=head1 RELATIONS
63
=head1 RELATIONS
83
64
84
=head2 biblionumber
65
=head2 borrowernumber
85
66
86
Type: belongs_to
67
Type: belongs_to
87
68
88
Related object: L<Koha::Schema::Result::Biblio>
69
Related object: L<Koha::Schema::Result::Borrower>
89
70
90
=cut
71
=cut
91
72
92
__PACKAGE__->belongs_to(
73
__PACKAGE__->belongs_to(
93
  "biblionumber",
74
  "borrowernumber",
94
  "Koha::Schema::Result::Biblio",
75
  "Koha::Schema::Result::Borrower",
95
  { biblionumber => "biblionumber" },
76
  { borrowernumber => "borrowernumber" },
96
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
77
  { on_delete => "CASCADE", on_update => "CASCADE" },
97
);
78
);
98
79
99
=head2 borrowernumber
80
=head2 biblionumber
100
81
101
Type: belongs_to
82
Type: belongs_to
102
83
103
Related object: L<Koha::Schema::Result::Borrower>
84
Related object: L<Koha::Schema::Result::Biblio>
104
85
105
=cut
86
=cut
106
87
107
__PACKAGE__->belongs_to(
88
__PACKAGE__->belongs_to(
108
  "borrowernumber",
89
  "biblionumber",
109
  "Koha::Schema::Result::Borrower",
90
  "Koha::Schema::Result::Biblio",
110
  { borrowernumber => "borrowernumber" },
91
  { biblionumber => "biblionumber" },
111
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92
  { on_delete => "CASCADE", on_update => "CASCADE" },
112
);
93
);
113
94
114
95
115
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
96
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YT3jPQbA2TBuOuUXfEt7gQ
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eJAHcfCMllgMZZe5rwtcoA
117
98
118
99
119
# You can replace this text with custom content, and it will be preserved on regeneration
100
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/RepeatableHoliday.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::RepeatableHoliday;
1
package Koha::Schema::Result::RepeatableHoliday;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::RepeatableHoliday
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<repeatable_holidays>
11
12
=head1 NAME
13
14
Koha::Schema::Result::RepeatableHoliday
19
15
20
=cut
16
=cut
21
17
Lines 81-102 __PACKAGE__->add_columns( Link Here
81
  "description",
77
  "description",
82
  { data_type => "text", is_nullable => 0 },
78
  { data_type => "text", is_nullable => 0 },
83
);
79
);
84
85
=head1 PRIMARY KEY
86
87
=over 4
88
89
=item * L</id>
90
91
=back
92
93
=cut
94
95
__PACKAGE__->set_primary_key("id");
80
__PACKAGE__->set_primary_key("id");
96
81
97
82
98
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
83
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
99
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:15Ot3jdlgFpmCbVgUDqZRg
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fbMefsPCXNlvvTF5AqsUxw
100
85
101
86
102
# You can replace this text with custom content, and it will be preserved on regeneration
87
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ReportsDictionary.pm (-33 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ReportsDictionary;
1
package Koha::Schema::Result::ReportsDictionary;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ReportsDictionary
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<reports_dictionary>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ReportsDictionary
19
15
20
=cut
16
=cut
21
17
Lines 43-55 __PACKAGE__->table("reports_dictionary"); Link Here
43
=head2 date_created
39
=head2 date_created
44
40
45
  data_type: 'datetime'
41
  data_type: 'datetime'
46
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
42
  is_nullable: 1
48
43
49
=head2 date_modified
44
=head2 date_modified
50
45
51
  data_type: 'datetime'
46
  data_type: 'datetime'
52
  datetime_undef_if_invalid: 1
53
  is_nullable: 1
47
  is_nullable: 1
54
48
55
=head2 saved_sql
49
=head2 saved_sql
Lines 73-110 __PACKAGE__->add_columns( Link Here
73
  "description",
67
  "description",
74
  { data_type => "text", is_nullable => 1 },
68
  { data_type => "text", is_nullable => 1 },
75
  "date_created",
69
  "date_created",
76
  {
70
  { data_type => "datetime", is_nullable => 1 },
77
    data_type => "datetime",
78
    datetime_undef_if_invalid => 1,
79
    is_nullable => 1,
80
  },
81
  "date_modified",
71
  "date_modified",
82
  {
72
  { data_type => "datetime", is_nullable => 1 },
83
    data_type => "datetime",
84
    datetime_undef_if_invalid => 1,
85
    is_nullable => 1,
86
  },
87
  "saved_sql",
73
  "saved_sql",
88
  { data_type => "text", is_nullable => 1 },
74
  { data_type => "text", is_nullable => 1 },
89
  "report_area",
75
  "report_area",
90
  { data_type => "varchar", is_nullable => 1, size => 6 },
76
  { data_type => "varchar", is_nullable => 1, size => 6 },
91
);
77
);
92
93
=head1 PRIMARY KEY
94
95
=over 4
96
97
=item * L</id>
98
99
=back
100
101
=cut
102
103
__PACKAGE__->set_primary_key("id");
78
__PACKAGE__->set_primary_key("id");
104
79
105
80
106
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
81
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Cnru3/NTfEScxeVggDa5RA
82
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EAWLegQRr3CdesQVg7i0FQ
108
83
109
84
110
# You can replace this text with custom content, and it will be preserved on regeneration
85
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Reserve.pm (-72 / +34 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Reserve;
1
package Koha::Schema::Result::Reserve;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Reserve
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<reserves>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Reserve
19
15
20
=cut
16
=cut
21
17
Lines 39-45 __PACKAGE__->table("reserves"); Link Here
39
=head2 reservedate
35
=head2 reservedate
40
36
41
  data_type: 'date'
37
  data_type: 'date'
42
  datetime_undef_if_invalid: 1
43
  is_nullable: 1
38
  is_nullable: 1
44
39
45
=head2 biblionumber
40
=head2 biblionumber
Lines 65-83 __PACKAGE__->table("reserves"); Link Here
65
=head2 notificationdate
60
=head2 notificationdate
66
61
67
  data_type: 'date'
62
  data_type: 'date'
68
  datetime_undef_if_invalid: 1
69
  is_nullable: 1
63
  is_nullable: 1
70
64
71
=head2 reminderdate
65
=head2 reminderdate
72
66
73
  data_type: 'date'
67
  data_type: 'date'
74
  datetime_undef_if_invalid: 1
75
  is_nullable: 1
68
  is_nullable: 1
76
69
77
=head2 cancellationdate
70
=head2 cancellationdate
78
71
79
  data_type: 'date'
72
  data_type: 'date'
80
  datetime_undef_if_invalid: 1
81
  is_nullable: 1
73
  is_nullable: 1
82
74
83
=head2 reservenotes
75
=head2 reservenotes
Lines 99-105 __PACKAGE__->table("reserves"); Link Here
99
=head2 timestamp
91
=head2 timestamp
100
92
101
  data_type: 'timestamp'
93
  data_type: 'timestamp'
102
  datetime_undef_if_invalid: 1
103
  default_value: current_timestamp
94
  default_value: current_timestamp
104
  is_nullable: 0
95
  is_nullable: 0
105
96
Lines 112-124 __PACKAGE__->table("reserves"); Link Here
112
=head2 waitingdate
103
=head2 waitingdate
113
104
114
  data_type: 'date'
105
  data_type: 'date'
115
  datetime_undef_if_invalid: 1
116
  is_nullable: 1
106
  is_nullable: 1
117
107
118
=head2 expirationdate
108
=head2 expirationdate
119
109
120
  data_type: 'date'
110
  data_type: 'date'
121
  datetime_undef_if_invalid: 1
122
  is_nullable: 1
111
  is_nullable: 1
123
112
124
=head2 lowestpriority
113
=head2 lowestpriority
Lines 135-141 __PACKAGE__->table("reserves"); Link Here
135
=head2 suspend_until
124
=head2 suspend_until
136
125
137
  data_type: 'datetime'
126
  data_type: 'datetime'
138
  datetime_undef_if_invalid: 1
139
  is_nullable: 1
127
  is_nullable: 1
140
128
141
=cut
129
=cut
Lines 151-157 __PACKAGE__->add_columns( Link Here
151
    is_nullable    => 0,
139
    is_nullable    => 0,
152
  },
140
  },
153
  "reservedate",
141
  "reservedate",
154
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
142
  { data_type => "date", is_nullable => 1 },
155
  "biblionumber",
143
  "biblionumber",
156
  {
144
  {
157
    data_type      => "integer",
145
    data_type      => "integer",
Lines 164-174 __PACKAGE__->add_columns( Link Here
164
  "branchcode",
152
  "branchcode",
165
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
153
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
166
  "notificationdate",
154
  "notificationdate",
167
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
155
  { data_type => "date", is_nullable => 1 },
168
  "reminderdate",
156
  "reminderdate",
169
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
157
  { data_type => "date", is_nullable => 1 },
170
  "cancellationdate",
158
  "cancellationdate",
171
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
159
  { data_type => "date", is_nullable => 1 },
172
  "reservenotes",
160
  "reservenotes",
173
  { data_type => "mediumtext", is_nullable => 1 },
161
  { data_type => "mediumtext", is_nullable => 1 },
174
  "priority",
162
  "priority",
Lines 177-218 __PACKAGE__->add_columns( Link Here
177
  { data_type => "varchar", is_nullable => 1, size => 1 },
165
  { data_type => "varchar", is_nullable => 1, size => 1 },
178
  "timestamp",
166
  "timestamp",
179
  {
167
  {
180
    data_type => "timestamp",
168
    data_type     => "timestamp",
181
    datetime_undef_if_invalid => 1,
182
    default_value => \"current_timestamp",
169
    default_value => \"current_timestamp",
183
    is_nullable => 0,
170
    is_nullable   => 0,
184
  },
171
  },
185
  "itemnumber",
172
  "itemnumber",
186
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
173
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
187
  "waitingdate",
174
  "waitingdate",
188
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
175
  { data_type => "date", is_nullable => 1 },
189
  "expirationdate",
176
  "expirationdate",
190
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
177
  { data_type => "date", is_nullable => 1 },
191
  "lowestpriority",
178
  "lowestpriority",
192
  { data_type => "tinyint", is_nullable => 0 },
179
  { data_type => "tinyint", is_nullable => 0 },
193
  "suspend",
180
  "suspend",
194
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
181
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
195
  "suspend_until",
182
  "suspend_until",
196
  {
183
  { data_type => "datetime", is_nullable => 1 },
197
    data_type => "datetime",
198
    datetime_undef_if_invalid => 1,
199
    is_nullable => 1,
200
  },
201
);
184
);
185
__PACKAGE__->set_primary_key("reserve_id");
202
186
203
=head1 PRIMARY KEY
187
=head1 RELATIONS
204
188
205
=over 4
189
=head2 borrowernumber
206
190
207
=item * L</reserve_id>
191
Type: belongs_to
208
192
209
=back
193
Related object: L<Koha::Schema::Result::Borrower>
210
194
211
=cut
195
=cut
212
196
213
__PACKAGE__->set_primary_key("reserve_id");
197
__PACKAGE__->belongs_to(
214
198
  "borrowernumber",
215
=head1 RELATIONS
199
  "Koha::Schema::Result::Borrower",
200
  { borrowernumber => "borrowernumber" },
201
  { on_delete => "CASCADE", on_update => "CASCADE" },
202
);
216
203
217
=head2 biblionumber
204
=head2 biblionumber
218
205
Lines 226-247 __PACKAGE__->belongs_to( Link Here
226
  "biblionumber",
213
  "biblionumber",
227
  "Koha::Schema::Result::Biblio",
214
  "Koha::Schema::Result::Biblio",
228
  { biblionumber => "biblionumber" },
215
  { biblionumber => "biblionumber" },
229
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
216
  { on_delete => "CASCADE", on_update => "CASCADE" },
230
);
217
);
231
218
232
=head2 borrowernumber
219
=head2 itemnumber
233
220
234
Type: belongs_to
221
Type: belongs_to
235
222
236
Related object: L<Koha::Schema::Result::Borrower>
223
Related object: L<Koha::Schema::Result::Item>
237
224
238
=cut
225
=cut
239
226
240
__PACKAGE__->belongs_to(
227
__PACKAGE__->belongs_to(
241
  "borrowernumber",
228
  "itemnumber",
242
  "Koha::Schema::Result::Borrower",
229
  "Koha::Schema::Result::Item",
243
  { borrowernumber => "borrowernumber" },
230
  { itemnumber => "itemnumber" },
244
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
231
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
245
);
232
);
246
233
247
=head2 branchcode
234
=head2 branchcode
Lines 256-292 __PACKAGE__->belongs_to( Link Here
256
  "branchcode",
243
  "branchcode",
257
  "Koha::Schema::Result::Branch",
244
  "Koha::Schema::Result::Branch",
258
  { branchcode => "branchcode" },
245
  { branchcode => "branchcode" },
259
  {
246
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
260
    is_deferrable => 1,
261
    join_type     => "LEFT",
262
    on_delete     => "CASCADE",
263
    on_update     => "CASCADE",
264
  },
265
);
266
267
=head2 itemnumber
268
269
Type: belongs_to
270
271
Related object: L<Koha::Schema::Result::Item>
272
273
=cut
274
275
__PACKAGE__->belongs_to(
276
  "itemnumber",
277
  "Koha::Schema::Result::Item",
278
  { itemnumber => "itemnumber" },
279
  {
280
    is_deferrable => 1,
281
    join_type     => "LEFT",
282
    on_delete     => "CASCADE",
283
    on_update     => "CASCADE",
284
  },
285
);
247
);
286
248
287
249
288
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
250
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
289
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ig/fobzvZf1OgAHZFtkyyQ
251
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Tmf4GhDljsiUSc3zXpFpvw
290
252
291
253
292
# You can replace this text with custom content, and it will be preserved on regeneration
254
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Reserveconstraint.pm (-16 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Reserveconstraint;
1
package Koha::Schema::Result::Reserveconstraint;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Reserveconstraint
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<reserveconstraints>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Reserveconstraint
19
15
20
=cut
16
=cut
21
17
Lines 32-38 __PACKAGE__->table("reserveconstraints"); Link Here
32
=head2 reservedate
28
=head2 reservedate
33
29
34
  data_type: 'date'
30
  data_type: 'date'
35
  datetime_undef_if_invalid: 1
36
  is_nullable: 1
31
  is_nullable: 1
37
32
38
=head2 biblionumber
33
=head2 biblionumber
Lines 49-55 __PACKAGE__->table("reserveconstraints"); Link Here
49
=head2 timestamp
44
=head2 timestamp
50
45
51
  data_type: 'timestamp'
46
  data_type: 'timestamp'
52
  datetime_undef_if_invalid: 1
53
  default_value: current_timestamp
47
  default_value: current_timestamp
54
  is_nullable: 0
48
  is_nullable: 0
55
49
Lines 59-81 __PACKAGE__->add_columns( Link Here
59
  "borrowernumber",
53
  "borrowernumber",
60
  { data_type => "integer", default_value => 0, is_nullable => 0 },
54
  { data_type => "integer", default_value => 0, is_nullable => 0 },
61
  "reservedate",
55
  "reservedate",
62
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
56
  { data_type => "date", is_nullable => 1 },
63
  "biblionumber",
57
  "biblionumber",
64
  { data_type => "integer", default_value => 0, is_nullable => 0 },
58
  { data_type => "integer", default_value => 0, is_nullable => 0 },
65
  "biblioitemnumber",
59
  "biblioitemnumber",
66
  { data_type => "integer", is_nullable => 1 },
60
  { data_type => "integer", is_nullable => 1 },
67
  "timestamp",
61
  "timestamp",
68
  {
62
  {
69
    data_type => "timestamp",
63
    data_type     => "timestamp",
70
    datetime_undef_if_invalid => 1,
71
    default_value => \"current_timestamp",
64
    default_value => \"current_timestamp",
72
    is_nullable => 0,
65
    is_nullable   => 0,
73
  },
66
  },
74
);
67
);
75
68
76
69
77
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
70
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qsSPIwQxTBxw3s2a3hD34g
71
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SD7Qb11SrWlC8IEKeGpVlg
79
72
80
73
81
# You can replace this text with custom content, and it will be preserved on regeneration
74
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Review.pm (-49 / +19 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Review;
1
package Koha::Schema::Result::Review;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Review
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<reviews>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Review
19
15
20
=cut
16
=cut
21
17
Lines 54-60 __PACKAGE__->table("reviews"); Link Here
54
=head2 datereviewed
50
=head2 datereviewed
55
51
56
  data_type: 'datetime'
52
  data_type: 'datetime'
57
  datetime_undef_if_invalid: 1
58
  is_nullable: 1
53
  is_nullable: 1
59
54
60
=cut
55
=cut
Lines 71-140 __PACKAGE__->add_columns( Link Here
71
  "approved",
66
  "approved",
72
  { data_type => "tinyint", is_nullable => 1 },
67
  { data_type => "tinyint", is_nullable => 1 },
73
  "datereviewed",
68
  "datereviewed",
74
  {
69
  { data_type => "datetime", is_nullable => 1 },
75
    data_type => "datetime",
76
    datetime_undef_if_invalid => 1,
77
    is_nullable => 1,
78
  },
79
);
70
);
80
81
=head1 PRIMARY KEY
82
83
=over 4
84
85
=item * L</reviewid>
86
87
=back
88
89
=cut
90
91
__PACKAGE__->set_primary_key("reviewid");
71
__PACKAGE__->set_primary_key("reviewid");
92
72
93
=head1 RELATIONS
73
=head1 RELATIONS
94
74
95
=head2 biblionumber
75
=head2 borrowernumber
96
76
97
Type: belongs_to
77
Type: belongs_to
98
78
99
Related object: L<Koha::Schema::Result::Biblio>
79
Related object: L<Koha::Schema::Result::Borrower>
100
80
101
=cut
81
=cut
102
82
103
__PACKAGE__->belongs_to(
83
__PACKAGE__->belongs_to(
104
  "biblionumber",
84
  "borrowernumber",
105
  "Koha::Schema::Result::Biblio",
85
  "Koha::Schema::Result::Borrower",
106
  { biblionumber => "biblionumber" },
86
  { borrowernumber => "borrowernumber" },
107
  {
87
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
108
    is_deferrable => 1,
109
    join_type     => "LEFT",
110
    on_delete     => "CASCADE",
111
    on_update     => "CASCADE",
112
  },
113
);
88
);
114
89
115
=head2 borrowernumber
90
=head2 biblionumber
116
91
117
Type: belongs_to
92
Type: belongs_to
118
93
119
Related object: L<Koha::Schema::Result::Borrower>
94
Related object: L<Koha::Schema::Result::Biblio>
120
95
121
=cut
96
=cut
122
97
123
__PACKAGE__->belongs_to(
98
__PACKAGE__->belongs_to(
124
  "borrowernumber",
99
  "biblionumber",
125
  "Koha::Schema::Result::Borrower",
100
  "Koha::Schema::Result::Biblio",
126
  { borrowernumber => "borrowernumber" },
101
  { biblionumber => "biblionumber" },
127
  {
102
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
128
    is_deferrable => 1,
129
    join_type     => "LEFT",
130
    on_delete     => "CASCADE",
131
    on_update     => "CASCADE",
132
  },
133
);
103
);
134
104
135
105
136
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
106
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
137
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/gg7wEkOzJ7yI3UXoDcQKA
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sZgijj68waHkEcbRAMMjZg
138
108
139
109
140
# You can replace this text with custom content, and it will be preserved on regeneration
110
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Roadtype.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Roadtype;
1
package Koha::Schema::Result::Roadtype;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Roadtype
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<roadtype>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Roadtype
19
15
20
=cut
16
=cut
21
17
Lines 44-65 __PACKAGE__->add_columns( Link Here
44
  "road_type",
40
  "road_type",
45
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
41
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
46
);
42
);
47
48
=head1 PRIMARY KEY
49
50
=over 4
51
52
=item * L</roadtypeid>
53
54
=back
55
56
=cut
57
58
__PACKAGE__->set_primary_key("roadtypeid");
43
__PACKAGE__->set_primary_key("roadtypeid");
59
44
60
45
61
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
46
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5kGeIy5frUgC5wj646dC3g
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QyJNTAGHlSf1UFtS8O01Yg
63
48
64
49
65
# You can replace this text with custom content, and it will be preserved on regeneration
50
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SavedReport.pm (-27 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::SavedReport;
1
package Koha::Schema::Result::SavedReport;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::SavedReport
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<saved_reports>
11
12
=head1 NAME
13
14
Koha::Schema::Result::SavedReport
19
15
20
=cut
16
=cut
21
17
Lines 42-48 __PACKAGE__->table("saved_reports"); Link Here
42
=head2 date_run
38
=head2 date_run
43
39
44
  data_type: 'datetime'
40
  data_type: 'datetime'
45
  datetime_undef_if_invalid: 1
46
  is_nullable: 1
41
  is_nullable: 1
47
42
48
=cut
43
=cut
Lines 55-82 __PACKAGE__->add_columns( Link Here
55
  "report",
50
  "report",
56
  { data_type => "longtext", is_nullable => 1 },
51
  { data_type => "longtext", is_nullable => 1 },
57
  "date_run",
52
  "date_run",
58
  {
53
  { data_type => "datetime", is_nullable => 1 },
59
    data_type => "datetime",
60
    datetime_undef_if_invalid => 1,
61
    is_nullable => 1,
62
  },
63
);
54
);
64
65
=head1 PRIMARY KEY
66
67
=over 4
68
69
=item * L</id>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("id");
55
__PACKAGE__->set_primary_key("id");
76
56
77
57
78
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
58
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wvI6/eIxRIm+WWeDVepQaw
59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JwyjkZ8N6j96guzbzKLPvA
80
60
81
61
82
# You can replace this text with custom content, and it will be preserved on regeneration
62
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SavedSql.pm (-39 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::SavedSql;
1
package Koha::Schema::Result::SavedSql;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::SavedSql
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<saved_sql>
11
12
=head1 NAME
13
14
Koha::Schema::Result::SavedSql
19
15
20
=cut
16
=cut
21
17
Lines 37-49 __PACKAGE__->table("saved_sql"); Link Here
37
=head2 date_created
33
=head2 date_created
38
34
39
  data_type: 'datetime'
35
  data_type: 'datetime'
40
  datetime_undef_if_invalid: 1
41
  is_nullable: 1
36
  is_nullable: 1
42
37
43
=head2 last_modified
38
=head2 last_modified
44
39
45
  data_type: 'datetime'
40
  data_type: 'datetime'
46
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
41
  is_nullable: 1
48
42
49
=head2 savedsql
43
=head2 savedsql
Lines 54-60 __PACKAGE__->table("saved_sql"); Link Here
54
=head2 last_run
48
=head2 last_run
55
49
56
  data_type: 'datetime'
50
  data_type: 'datetime'
57
  datetime_undef_if_invalid: 1
58
  is_nullable: 1
51
  is_nullable: 1
59
52
60
=head2 report_name
53
=head2 report_name
Lines 112-136 __PACKAGE__->add_columns( Link Here
112
  "borrowernumber",
105
  "borrowernumber",
113
  { data_type => "integer", is_nullable => 1 },
106
  { data_type => "integer", is_nullable => 1 },
114
  "date_created",
107
  "date_created",
115
  {
108
  { data_type => "datetime", is_nullable => 1 },
116
    data_type => "datetime",
117
    datetime_undef_if_invalid => 1,
118
    is_nullable => 1,
119
  },
120
  "last_modified",
109
  "last_modified",
121
  {
110
  { data_type => "datetime", is_nullable => 1 },
122
    data_type => "datetime",
123
    datetime_undef_if_invalid => 1,
124
    is_nullable => 1,
125
  },
126
  "savedsql",
111
  "savedsql",
127
  { data_type => "text", is_nullable => 1 },
112
  { data_type => "text", is_nullable => 1 },
128
  "last_run",
113
  "last_run",
129
  {
114
  { data_type => "datetime", is_nullable => 1 },
130
    data_type => "datetime",
131
    datetime_undef_if_invalid => 1,
132
    is_nullable => 1,
133
  },
134
  "report_name",
115
  "report_name",
135
  { data_type => "varchar", is_nullable => 1, size => 255 },
116
  { data_type => "varchar", is_nullable => 1, size => 255 },
136
  "type",
117
  "type",
Lines 148-169 __PACKAGE__->add_columns( Link Here
148
  "report_subgroup",
129
  "report_subgroup",
149
  { data_type => "varchar", is_nullable => 1, size => 80 },
130
  { data_type => "varchar", is_nullable => 1, size => 80 },
150
);
131
);
151
152
=head1 PRIMARY KEY
153
154
=over 4
155
156
=item * L</id>
157
158
=back
159
160
=cut
161
162
__PACKAGE__->set_primary_key("id");
132
__PACKAGE__->set_primary_key("id");
163
133
164
134
165
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
135
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:laD/JwzxzYnUhBABofprEA
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7n40GyxVGF1yCi7gnazmtQ
167
137
168
138
169
# You can replace this text with custom content, and it will be preserved on regeneration
139
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SearchHistory.pm (-14 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::SearchHistory;
1
package Koha::Schema::Result::SearchHistory;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::SearchHistory - Opac search history results
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<search_history>
11
12
=head1 NAME
13
14
Koha::Schema::Result::SearchHistory
19
15
20
=cut
16
=cut
21
17
Lines 53-59 __PACKAGE__->table("search_history"); Link Here
53
=head2 time
49
=head2 time
54
50
55
  data_type: 'timestamp'
51
  data_type: 'timestamp'
56
  datetime_undef_if_invalid: 1
57
  default_value: current_timestamp
52
  default_value: current_timestamp
58
  is_nullable: 0
53
  is_nullable: 0
59
54
Lines 72-87 __PACKAGE__->add_columns( Link Here
72
  { data_type => "integer", is_nullable => 0 },
67
  { data_type => "integer", is_nullable => 0 },
73
  "time",
68
  "time",
74
  {
69
  {
75
    data_type => "timestamp",
70
    data_type     => "timestamp",
76
    datetime_undef_if_invalid => 1,
77
    default_value => \"current_timestamp",
71
    default_value => \"current_timestamp",
78
    is_nullable => 0,
72
    is_nullable   => 0,
79
  },
73
  },
80
);
74
);
81
75
82
76
83
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
84
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HLDQ0HfcjBkl6y1rXoX0qA
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xDbE0+JiOdrvFzYh8wTISw
85
79
86
80
87
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Serial.pm (-27 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Serial;
1
package Koha::Schema::Result::Serial;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Serial
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<serial>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Serial
19
15
20
=cut
16
=cut
21
17
Lines 59-65 __PACKAGE__->table("serial"); Link Here
59
=head2 planneddate
55
=head2 planneddate
60
56
61
  data_type: 'date'
57
  data_type: 'date'
62
  datetime_undef_if_invalid: 1
63
  is_nullable: 1
58
  is_nullable: 1
64
59
65
=head2 notes
60
=head2 notes
Lines 70-82 __PACKAGE__->table("serial"); Link Here
70
=head2 publisheddate
65
=head2 publisheddate
71
66
72
  data_type: 'date'
67
  data_type: 'date'
73
  datetime_undef_if_invalid: 1
74
  is_nullable: 1
68
  is_nullable: 1
75
69
76
=head2 claimdate
70
=head2 claimdate
77
71
78
  data_type: 'date'
72
  data_type: 'date'
79
  datetime_undef_if_invalid: 1
80
  is_nullable: 1
73
  is_nullable: 1
81
74
82
=head2 routingnotes
75
=head2 routingnotes
Lines 98-124 __PACKAGE__->add_columns( Link Here
98
  "status",
91
  "status",
99
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
92
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
100
  "planneddate",
93
  "planneddate",
101
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
94
  { data_type => "date", is_nullable => 1 },
102
  "notes",
95
  "notes",
103
  { data_type => "text", is_nullable => 1 },
96
  { data_type => "text", is_nullable => 1 },
104
  "publisheddate",
97
  "publisheddate",
105
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
98
  { data_type => "date", is_nullable => 1 },
106
  "claimdate",
99
  "claimdate",
107
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
100
  { data_type => "date", is_nullable => 1 },
108
  "routingnotes",
101
  "routingnotes",
109
  { data_type => "text", is_nullable => 1 },
102
  { data_type => "text", is_nullable => 1 },
110
);
103
);
111
112
=head1 PRIMARY KEY
113
114
=over 4
115
116
=item * L</serialid>
117
118
=back
119
120
=cut
121
122
__PACKAGE__->set_primary_key("serialid");
104
__PACKAGE__->set_primary_key("serialid");
123
105
124
=head1 RELATIONS
106
=head1 RELATIONS
Lines 139-146 __PACKAGE__->has_many( Link Here
139
);
121
);
140
122
141
123
142
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
124
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
143
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xloe1BJrVD7sU07AnA4P2g
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:be0qdPp8DJMFH9pWZ3IVEg
144
126
145
127
146
# You can replace this text with custom content, and it will be preserved on regeneration
128
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Serialitem.pm (-35 / +18 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Serialitem;
1
package Koha::Schema::Result::Serialitem;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Serialitem
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<serialitems>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Serialitem
19
15
20
=cut
16
=cut
21
17
Lines 43-98 __PACKAGE__->add_columns( Link Here
43
  "serialid",
39
  "serialid",
44
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
40
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
45
);
41
);
46
47
=head1 UNIQUE CONSTRAINTS
48
49
=head2 C<serialitemsidx>
50
51
=over 4
52
53
=item * L</itemnumber>
54
55
=back
56
57
=cut
58
59
__PACKAGE__->add_unique_constraint("serialitemsidx", ["itemnumber"]);
42
__PACKAGE__->add_unique_constraint("serialitemsidx", ["itemnumber"]);
60
43
61
=head1 RELATIONS
44
=head1 RELATIONS
62
45
63
=head2 itemnumber
46
=head2 serialid
64
47
65
Type: belongs_to
48
Type: belongs_to
66
49
67
Related object: L<Koha::Schema::Result::Item>
50
Related object: L<Koha::Schema::Result::Serial>
68
51
69
=cut
52
=cut
70
53
71
__PACKAGE__->belongs_to(
54
__PACKAGE__->belongs_to(
72
  "itemnumber",
55
  "serialid",
73
  "Koha::Schema::Result::Item",
56
  "Koha::Schema::Result::Serial",
74
  { itemnumber => "itemnumber" },
57
  { serialid => "serialid" },
75
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
58
  { on_delete => "CASCADE", on_update => "CASCADE" },
76
);
59
);
77
60
78
=head2 serialid
61
=head2 itemnumber
79
62
80
Type: belongs_to
63
Type: belongs_to
81
64
82
Related object: L<Koha::Schema::Result::Serial>
65
Related object: L<Koha::Schema::Result::Item>
83
66
84
=cut
67
=cut
85
68
86
__PACKAGE__->belongs_to(
69
__PACKAGE__->belongs_to(
87
  "serialid",
70
  "itemnumber",
88
  "Koha::Schema::Result::Serial",
71
  "Koha::Schema::Result::Item",
89
  { serialid => "serialid" },
72
  { itemnumber => "itemnumber" },
90
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
73
  { on_delete => "CASCADE", on_update => "CASCADE" },
91
);
74
);
92
75
93
76
94
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JZcKy2QIB2c39vgpntWahQ
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x/F5S9ilc144kjlRHRAjPA
96
79
97
80
98
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ServicesThrottle.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::ServicesThrottle;
1
package Koha::Schema::Result::ServicesThrottle;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::ServicesThrottle
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<services_throttle>
11
12
=head1 NAME
13
14
Koha::Schema::Result::ServicesThrottle
19
15
20
=cut
16
=cut
21
17
Lines 44-65 __PACKAGE__->add_columns( Link Here
44
  "service_count",
40
  "service_count",
45
  { data_type => "varchar", is_nullable => 1, size => 45 },
41
  { data_type => "varchar", is_nullable => 1, size => 45 },
46
);
42
);
47
48
=head1 PRIMARY KEY
49
50
=over 4
51
52
=item * L</service_type>
53
54
=back
55
56
=cut
57
58
__PACKAGE__->set_primary_key("service_type");
43
__PACKAGE__->set_primary_key("service_type");
59
44
60
45
61
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
46
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XxtEV+cJ5qa/3oCHd2GrSw
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b9GW1Asa0nQUwYoUZ1Zg/g
63
48
64
49
65
# You can replace this text with custom content, and it will be preserved on regeneration
50
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Session.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Session;
1
package Koha::Schema::Result::Session;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Session
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<sessions>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Session
19
15
20
=cut
16
=cut
21
17
Lines 42-63 __PACKAGE__->add_columns( Link Here
42
  "a_session",
38
  "a_session",
43
  { data_type => "text", is_nullable => 0 },
39
  { data_type => "text", is_nullable => 0 },
44
);
40
);
45
46
=head1 PRIMARY KEY
47
48
=over 4
49
50
=item * L</id>
51
52
=back
53
54
=cut
55
56
__PACKAGE__->set_primary_key("id");
41
__PACKAGE__->set_primary_key("id");
57
42
58
43
59
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
44
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
60
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N/DKx6NVPCcbDVK3SSMfGQ
45
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1Q7RHnXwJDLmDSYDGgx9Ig
61
46
62
47
63
# You can replace this text with custom content, and it will be preserved on regeneration
48
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SocialData.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::SocialData;
1
package Koha::Schema::Result::SocialData;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::SocialData
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<social_data>
11
12
=head1 NAME
13
14
Koha::Schema::Result::SocialData
19
15
20
=cut
16
=cut
21
17
Lines 79-100 __PACKAGE__->add_columns( Link Here
79
  "num_scores",
75
  "num_scores",
80
  { data_type => "integer", is_nullable => 1 },
76
  { data_type => "integer", is_nullable => 1 },
81
);
77
);
82
83
=head1 PRIMARY KEY
84
85
=over 4
86
87
=item * L</isbn>
88
89
=back
90
91
=cut
92
93
__PACKAGE__->set_primary_key("isbn");
78
__PACKAGE__->set_primary_key("isbn");
94
79
95
80
96
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
81
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
97
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Medc/ZzPVp5Eq+adFoqQoA
82
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WOoTJtUwFv9mQyU/V8CfCg
98
83
99
84
100
# You can replace this text with custom content, and it will be preserved on regeneration
85
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/SpecialHoliday.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::SpecialHoliday;
1
package Koha::Schema::Result::SpecialHoliday;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::SpecialHoliday
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<special_holidays>
11
12
=head1 NAME
13
14
Koha::Schema::Result::SpecialHoliday
19
15
20
=cut
16
=cut
21
17
Lines 92-113 __PACKAGE__->add_columns( Link Here
92
  "description",
88
  "description",
93
  { data_type => "text", is_nullable => 0 },
89
  { data_type => "text", is_nullable => 0 },
94
);
90
);
95
96
=head1 PRIMARY KEY
97
98
=over 4
99
100
=item * L</id>
101
102
=back
103
104
=cut
105
106
__PACKAGE__->set_primary_key("id");
91
__PACKAGE__->set_primary_key("id");
107
92
108
93
109
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
94
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
110
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mRo3D1nPRJsMY6hPxp/Ojg
95
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g7qNXuX47xhJ07sL90PDVw
111
96
112
97
113
# 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/Statistic.pm (-16 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Statistic;
1
package Koha::Schema::Result::Statistic;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Statistic
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<statistics>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Statistic
19
15
20
=cut
16
=cut
21
17
Lines 26-32 __PACKAGE__->table("statistics"); Link Here
26
=head2 datetime
22
=head2 datetime
27
23
28
  data_type: 'datetime'
24
  data_type: 'datetime'
29
  datetime_undef_if_invalid: 1
30
  is_nullable: 1
25
  is_nullable: 1
31
26
32
=head2 branch
27
=head2 branch
Lines 95-105 __PACKAGE__->table("statistics"); Link Here
95
90
96
__PACKAGE__->add_columns(
91
__PACKAGE__->add_columns(
97
  "datetime",
92
  "datetime",
98
  {
93
  { data_type => "datetime", is_nullable => 1 },
99
    data_type => "datetime",
100
    datetime_undef_if_invalid => 1,
101
    is_nullable => 1,
102
  },
103
  "branch",
94
  "branch",
104
  { data_type => "varchar", is_nullable => 1, size => 10 },
95
  { data_type => "varchar", is_nullable => 1, size => 10 },
105
  "proccode",
96
  "proccode",
Lines 125-132 __PACKAGE__->add_columns( Link Here
125
);
116
);
126
117
127
118
128
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
119
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:THELVmdFFi1RCI4DfqwGIw
120
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9tyagrI46Be8UBXHxN+S+Q
130
121
131
122
132
# You can replace this text with custom content, and it will be preserved on regeneration
123
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Stopword.pm (-10 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Stopword;
1
package Koha::Schema::Result::Stopword;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Stopword
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<stopwords>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Stopword
19
15
20
=cut
16
=cut
21
17
Lines 37-44 __PACKAGE__->add_columns( Link Here
37
);
33
);
38
34
39
35
40
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
36
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8cIdWFpf7DlA61On1F7cVg
37
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U1F4NG9asxioA74VtWth5w
42
38
43
39
44
# You can replace this text with custom content, and it will be preserved on regeneration
40
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Subscription.pm (-103 / +147 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Subscription;
1
package Koha::Schema::Result::Subscription;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Subscription
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<subscription>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Subscription
19
15
20
=cut
16
=cut
21
17
Lines 45-51 __PACKAGE__->table("subscription"); Link Here
45
=head2 startdate
41
=head2 startdate
46
42
47
  data_type: 'date'
43
  data_type: 'date'
48
  datetime_undef_if_invalid: 1
49
  is_nullable: 1
44
  is_nullable: 1
50
45
51
=head2 aqbooksellerid
46
=head2 aqbooksellerid
Lines 86-100 __PACKAGE__->table("subscription"); Link Here
86
81
87
=head2 periodicity
82
=head2 periodicity
88
83
89
  data_type: 'integer'
84
  data_type: 'tinyint'
90
  is_foreign_key: 1
85
  default_value: 0
91
  is_nullable: 1
86
  is_nullable: 1
92
87
93
=head2 countissuesperunit
88
=head2 dow
94
89
95
  data_type: 'integer'
90
  data_type: 'varchar'
96
  default_value: 1
91
  default_value: (empty string)
97
  is_nullable: 0
92
  is_nullable: 1
93
  size: 100
94
95
=head2 numberingmethod
96
97
  data_type: 'varchar'
98
  default_value: (empty string)
99
  is_nullable: 1
100
  size: 100
98
101
99
=head2 notes
102
=head2 notes
100
103
Lines 108-138 __PACKAGE__->table("subscription"); Link Here
108
  is_nullable: 0
111
  is_nullable: 0
109
  size: 100
112
  size: 100
110
113
114
=head2 add1
115
116
  data_type: 'integer'
117
  default_value: 0
118
  is_nullable: 1
119
120
=head2 every1
121
122
  data_type: 'integer'
123
  default_value: 0
124
  is_nullable: 1
125
126
=head2 whenmorethan1
127
128
  data_type: 'integer'
129
  default_value: 0
130
  is_nullable: 1
131
132
=head2 setto1
133
134
  data_type: 'integer'
135
  is_nullable: 1
136
111
=head2 lastvalue1
137
=head2 lastvalue1
112
138
113
  data_type: 'integer'
139
  data_type: 'integer'
114
  is_nullable: 1
140
  is_nullable: 1
115
141
116
=head2 innerloop1
142
=head2 add2
143
144
  data_type: 'integer'
145
  default_value: 0
146
  is_nullable: 1
147
148
=head2 every2
149
150
  data_type: 'integer'
151
  default_value: 0
152
  is_nullable: 1
153
154
=head2 whenmorethan2
117
155
118
  data_type: 'integer'
156
  data_type: 'integer'
119
  default_value: 0
157
  default_value: 0
120
  is_nullable: 1
158
  is_nullable: 1
121
159
160
=head2 setto2
161
162
  data_type: 'integer'
163
  is_nullable: 1
164
122
=head2 lastvalue2
165
=head2 lastvalue2
123
166
124
  data_type: 'integer'
167
  data_type: 'integer'
125
  is_nullable: 1
168
  is_nullable: 1
126
169
127
=head2 innerloop2
170
=head2 add3
128
171
129
  data_type: 'integer'
172
  data_type: 'integer'
130
  default_value: 0
173
  default_value: 0
131
  is_nullable: 1
174
  is_nullable: 1
132
175
133
=head2 lastvalue3
176
=head2 every3
177
178
  data_type: 'integer'
179
  default_value: 0
180
  is_nullable: 1
181
182
=head2 innerloop1
134
183
135
  data_type: 'integer'
184
  data_type: 'integer'
185
  default_value: 0
186
  is_nullable: 1
187
188
=head2 innerloop2
189
190
  data_type: 'integer'
191
  default_value: 0
136
  is_nullable: 1
192
  is_nullable: 1
137
193
138
=head2 innerloop3
194
=head2 innerloop3
Lines 141-150 __PACKAGE__->table("subscription"); Link Here
141
  default_value: 0
197
  default_value: 0
142
  is_nullable: 1
198
  is_nullable: 1
143
199
200
=head2 whenmorethan3
201
202
  data_type: 'integer'
203
  default_value: 0
204
  is_nullable: 1
205
206
=head2 setto3
207
208
  data_type: 'integer'
209
  is_nullable: 1
210
211
=head2 lastvalue3
212
213
  data_type: 'integer'
214
  is_nullable: 1
215
216
=head2 issuesatonce
217
218
  data_type: 'tinyint'
219
  default_value: 1
220
  is_nullable: 0
221
144
=head2 firstacquidate
222
=head2 firstacquidate
145
223
146
  data_type: 'date'
224
  data_type: 'date'
147
  datetime_undef_if_invalid: 1
148
  is_nullable: 1
225
  is_nullable: 1
149
226
150
=head2 manualhistory
227
=head2 manualhistory
Lines 158-169 __PACKAGE__->table("subscription"); Link Here
158
  data_type: 'text'
235
  data_type: 'text'
159
  is_nullable: 1
236
  is_nullable: 1
160
237
161
=head2 skip_serialseq
162
163
  data_type: 'tinyint'
164
  default_value: 0
165
  is_nullable: 0
166
167
=head2 letter
238
=head2 letter
168
239
169
  data_type: 'varchar'
240
  data_type: 'varchar'
Lines 172-186 __PACKAGE__->table("subscription"); Link Here
172
243
173
=head2 numberpattern
244
=head2 numberpattern
174
245
175
  data_type: 'integer'
246
  data_type: 'tinyint'
176
  is_foreign_key: 1
247
  default_value: 0
177
  is_nullable: 1
178
179
=head2 locale
180
181
  data_type: 'varchar'
182
  is_nullable: 1
248
  is_nullable: 1
183
  size: 80
184
249
185
=head2 distributedto
250
=head2 distributedto
186
251
Lines 211-216 __PACKAGE__->table("subscription"); Link Here
211
  is_nullable: 0
276
  is_nullable: 0
212
  size: 10
277
  size: 10
213
278
279
=head2 hemisphere
280
281
  data_type: 'tinyint'
282
  default_value: 0
283
  is_nullable: 1
284
214
=head2 lastbranch
285
=head2 lastbranch
215
286
216
  data_type: 'varchar'
287
  data_type: 'varchar'
Lines 244-250 __PACKAGE__->table("subscription"); Link Here
244
=head2 enddate
315
=head2 enddate
245
316
246
  data_type: 'date'
317
  data_type: 'date'
247
  datetime_undef_if_invalid: 1
248
  is_nullable: 1
318
  is_nullable: 1
249
319
250
=head2 closed
320
=head2 closed
Lines 256-262 __PACKAGE__->table("subscription"); Link Here
256
=head2 reneweddate
326
=head2 reneweddate
257
327
258
  data_type: 'date'
328
  data_type: 'date'
259
  datetime_undef_if_invalid: 1
260
  is_nullable: 1
329
  is_nullable: 1
261
330
262
=cut
331
=cut
Lines 269-275 __PACKAGE__->add_columns( Link Here
269
  "librarian",
338
  "librarian",
270
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
339
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
271
  "startdate",
340
  "startdate",
272
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
341
  { data_type => "date", is_nullable => 1 },
273
  "aqbooksellerid",
342
  "aqbooksellerid",
274
  { data_type => "integer", default_value => 0, is_nullable => 1 },
343
  { data_type => "integer", default_value => 0, is_nullable => 1 },
275
  "cost",
344
  "cost",
Lines 283-321 __PACKAGE__->add_columns( Link Here
283
  "numberlength",
352
  "numberlength",
284
  { data_type => "integer", default_value => 0, is_nullable => 1 },
353
  { data_type => "integer", default_value => 0, is_nullable => 1 },
285
  "periodicity",
354
  "periodicity",
286
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
355
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
287
  "countissuesperunit",
356
  "dow",
288
  { data_type => "integer", default_value => 1, is_nullable => 0 },
357
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
358
  "numberingmethod",
359
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 },
289
  "notes",
360
  "notes",
290
  { data_type => "mediumtext", is_nullable => 1 },
361
  { data_type => "mediumtext", is_nullable => 1 },
291
  "status",
362
  "status",
292
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
363
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
364
  "add1",
365
  { data_type => "integer", default_value => 0, is_nullable => 1 },
366
  "every1",
367
  { data_type => "integer", default_value => 0, is_nullable => 1 },
368
  "whenmorethan1",
369
  { data_type => "integer", default_value => 0, is_nullable => 1 },
370
  "setto1",
371
  { data_type => "integer", is_nullable => 1 },
293
  "lastvalue1",
372
  "lastvalue1",
294
  { data_type => "integer", is_nullable => 1 },
373
  { data_type => "integer", is_nullable => 1 },
295
  "innerloop1",
374
  "add2",
296
  { data_type => "integer", default_value => 0, is_nullable => 1 },
375
  { data_type => "integer", default_value => 0, is_nullable => 1 },
376
  "every2",
377
  { data_type => "integer", default_value => 0, is_nullable => 1 },
378
  "whenmorethan2",
379
  { data_type => "integer", default_value => 0, is_nullable => 1 },
380
  "setto2",
381
  { data_type => "integer", is_nullable => 1 },
297
  "lastvalue2",
382
  "lastvalue2",
298
  { data_type => "integer", is_nullable => 1 },
383
  { data_type => "integer", is_nullable => 1 },
384
  "add3",
385
  { data_type => "integer", default_value => 0, is_nullable => 1 },
386
  "every3",
387
  { data_type => "integer", default_value => 0, is_nullable => 1 },
388
  "innerloop1",
389
  { data_type => "integer", default_value => 0, is_nullable => 1 },
299
  "innerloop2",
390
  "innerloop2",
300
  { data_type => "integer", default_value => 0, is_nullable => 1 },
391
  { data_type => "integer", default_value => 0, is_nullable => 1 },
301
  "lastvalue3",
302
  { data_type => "integer", is_nullable => 1 },
303
  "innerloop3",
392
  "innerloop3",
304
  { data_type => "integer", default_value => 0, is_nullable => 1 },
393
  { data_type => "integer", default_value => 0, is_nullable => 1 },
394
  "whenmorethan3",
395
  { data_type => "integer", default_value => 0, is_nullable => 1 },
396
  "setto3",
397
  { data_type => "integer", is_nullable => 1 },
398
  "lastvalue3",
399
  { data_type => "integer", is_nullable => 1 },
400
  "issuesatonce",
401
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
305
  "firstacquidate",
402
  "firstacquidate",
306
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
403
  { data_type => "date", is_nullable => 1 },
307
  "manualhistory",
404
  "manualhistory",
308
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
405
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
309
  "irregularity",
406
  "irregularity",
310
  { data_type => "text", is_nullable => 1 },
407
  { data_type => "text", is_nullable => 1 },
311
  "skip_serialseq",
312
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
313
  "letter",
408
  "letter",
314
  { data_type => "varchar", is_nullable => 1, size => 20 },
409
  { data_type => "varchar", is_nullable => 1, size => 20 },
315
  "numberpattern",
410
  "numberpattern",
316
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
411
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
317
  "locale",
318
  { data_type => "varchar", is_nullable => 1, size => 80 },
319
  "distributedto",
412
  "distributedto",
320
  { data_type => "text", is_nullable => 1 },
413
  { data_type => "text", is_nullable => 1 },
321
  "internalnotes",
414
  "internalnotes",
Lines 326-331 __PACKAGE__->add_columns( Link Here
326
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 80 },
419
  { data_type => "varchar", default_value => "", is_nullable => 1, size => 80 },
327
  "branchcode",
420
  "branchcode",
328
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
421
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
422
  "hemisphere",
423
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
329
  "lastbranch",
424
  "lastbranch",
330
  { data_type => "varchar", is_nullable => 1, size => 10 },
425
  { data_type => "varchar", is_nullable => 1, size => 10 },
331
  "serialsadditems",
426
  "serialsadditems",
Lines 337-359 __PACKAGE__->add_columns( Link Here
337
  "graceperiod",
432
  "graceperiod",
338
  { data_type => "integer", default_value => 0, is_nullable => 0 },
433
  { data_type => "integer", default_value => 0, is_nullable => 0 },
339
  "enddate",
434
  "enddate",
340
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
435
  { data_type => "date", is_nullable => 1 },
341
  "closed",
436
  "closed",
342
  { data_type => "integer", default_value => 0, is_nullable => 0 },
437
  { data_type => "integer", default_value => 0, is_nullable => 0 },
343
  "reneweddate",
438
  "reneweddate",
344
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
439
  { data_type => "date", is_nullable => 1 },
345
);
440
);
346
347
=head1 PRIMARY KEY
348
349
=over 4
350
351
=item * L</subscriptionid>
352
353
=back
354
355
=cut
356
357
__PACKAGE__->set_primary_key("subscriptionid");
441
__PACKAGE__->set_primary_key("subscriptionid");
358
442
359
=head1 RELATIONS
443
=head1 RELATIONS
Lines 373-418 __PACKAGE__->has_many( Link Here
373
  { cascade_copy => 0, cascade_delete => 0 },
457
  { cascade_copy => 0, cascade_delete => 0 },
374
);
458
);
375
459
376
=head2 numberpattern
377
378
Type: belongs_to
379
380
Related object: L<Koha::Schema::Result::SubscriptionNumberpattern>
381
382
=cut
383
384
__PACKAGE__->belongs_to(
385
  "numberpattern",
386
  "Koha::Schema::Result::SubscriptionNumberpattern",
387
  { id => "numberpattern" },
388
  {
389
    is_deferrable => 1,
390
    join_type     => "LEFT",
391
    on_delete     => "CASCADE",
392
    on_update     => "CASCADE",
393
  },
394
);
395
396
=head2 periodicity
397
398
Type: belongs_to
399
400
Related object: L<Koha::Schema::Result::SubscriptionFrequency>
401
402
=cut
403
404
__PACKAGE__->belongs_to(
405
  "periodicity",
406
  "Koha::Schema::Result::SubscriptionFrequency",
407
  { id => "periodicity" },
408
  {
409
    is_deferrable => 1,
410
    join_type     => "LEFT",
411
    on_delete     => "CASCADE",
412
    on_update     => "CASCADE",
413
  },
414
);
415
416
=head2 subscriptionroutinglists
460
=head2 subscriptionroutinglists
417
461
418
Type: has_many
462
Type: has_many
Lines 429-436 __PACKAGE__->has_many( Link Here
429
);
473
);
430
474
431
475
432
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 02:42:01
476
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
433
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JoTdms86n/xfPo8YUnDHUQ
477
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2vGQeK1QqRxFYpYz+fafWg
434
478
435
479
436
# You can replace this text with custom content, and it will be preserved on regeneration
480
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Subscriptionhistory.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Subscriptionhistory;
1
package Koha::Schema::Result::Subscriptionhistory;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Subscriptionhistory
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<subscriptionhistory>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Subscriptionhistory
19
15
20
=cut
16
=cut
21
17
Lines 38-50 __PACKAGE__->table("subscriptionhistory"); Link Here
38
=head2 histstartdate
34
=head2 histstartdate
39
35
40
  data_type: 'date'
36
  data_type: 'date'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
37
  is_nullable: 1
43
38
44
=head2 histenddate
39
=head2 histenddate
45
40
46
  data_type: 'date'
41
  data_type: 'date'
47
  datetime_undef_if_invalid: 1
48
  is_nullable: 1
42
  is_nullable: 1
49
43
50
=head2 missinglist
44
=head2 missinglist
Lines 79-87 __PACKAGE__->add_columns( Link Here
79
  "subscriptionid",
73
  "subscriptionid",
80
  { data_type => "integer", default_value => 0, is_nullable => 0 },
74
  { data_type => "integer", default_value => 0, is_nullable => 0 },
81
  "histstartdate",
75
  "histstartdate",
82
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
76
  { data_type => "date", is_nullable => 1 },
83
  "histenddate",
77
  "histenddate",
84
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
78
  { data_type => "date", is_nullable => 1 },
85
  "missinglist",
79
  "missinglist",
86
  { data_type => "longtext", is_nullable => 0 },
80
  { data_type => "longtext", is_nullable => 0 },
87
  "recievedlist",
81
  "recievedlist",
Lines 91-112 __PACKAGE__->add_columns( Link Here
91
  "librariannote",
85
  "librariannote",
92
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
86
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
93
);
87
);
94
95
=head1 PRIMARY KEY
96
97
=over 4
98
99
=item * L</subscriptionid>
100
101
=back
102
103
=cut
104
105
__PACKAGE__->set_primary_key("subscriptionid");
88
__PACKAGE__->set_primary_key("subscriptionid");
106
89
107
90
108
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
91
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+cXluRE1oKiCGOgwq1bhJw
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g1qcc1arD+FR8xT6ONu4Zw
110
93
111
94
112
# 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/Subscriptionroutinglist.pm (-38 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Subscriptionroutinglist;
1
package Koha::Schema::Result::Subscriptionroutinglist;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Subscriptionroutinglist
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<subscriptionroutinglist>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Subscriptionroutinglist
19
15
20
=cut
16
=cut
21
17
Lines 58-90 __PACKAGE__->add_columns( Link Here
58
  "subscriptionid",
54
  "subscriptionid",
59
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
60
);
56
);
61
62
=head1 PRIMARY KEY
63
64
=over 4
65
66
=item * L</routingid>
67
68
=back
69
70
=cut
71
72
__PACKAGE__->set_primary_key("routingid");
57
__PACKAGE__->set_primary_key("routingid");
73
74
=head1 UNIQUE CONSTRAINTS
75
76
=head2 C<subscriptionid>
77
78
=over 4
79
80
=item * L</subscriptionid>
81
82
=item * L</borrowernumber>
83
84
=back
85
86
=cut
87
88
__PACKAGE__->add_unique_constraint("subscriptionid", ["subscriptionid", "borrowernumber"]);
58
__PACKAGE__->add_unique_constraint("subscriptionid", ["subscriptionid", "borrowernumber"]);
89
59
90
=head1 RELATIONS
60
=head1 RELATIONS
Lines 101-107 __PACKAGE__->belongs_to( Link Here
101
  "borrowernumber",
71
  "borrowernumber",
102
  "Koha::Schema::Result::Borrower",
72
  "Koha::Schema::Result::Borrower",
103
  { borrowernumber => "borrowernumber" },
73
  { borrowernumber => "borrowernumber" },
104
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74
  { on_delete => "CASCADE", on_update => "CASCADE" },
105
);
75
);
106
76
107
=head2 subscriptionid
77
=head2 subscriptionid
Lines 116-127 __PACKAGE__->belongs_to( Link Here
116
  "subscriptionid",
86
  "subscriptionid",
117
  "Koha::Schema::Result::Subscription",
87
  "Koha::Schema::Result::Subscription",
118
  { subscriptionid => "subscriptionid" },
88
  { subscriptionid => "subscriptionid" },
119
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89
  { on_delete => "CASCADE", on_update => "CASCADE" },
120
);
90
);
121
91
122
92
123
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
93
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
124
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AK595c56vgTa7ZjwZjberw
94
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UexNHjOzf3uGXPx9kjbaLw
125
95
126
96
127
# You can replace this text with custom content, and it will be preserved on regeneration
97
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Suggestion.pm (-38 / +12 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Suggestion;
1
package Koha::Schema::Result::Suggestion;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Suggestion
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<suggestions>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Suggestion
19
15
20
=cut
16
=cut
21
17
Lines 38-44 __PACKAGE__->table("suggestions"); Link Here
38
=head2 suggesteddate
34
=head2 suggesteddate
39
35
40
  data_type: 'date'
36
  data_type: 'date'
41
  datetime_undef_if_invalid: 1
42
  default_value: '0000-00-00'
37
  default_value: '0000-00-00'
43
  is_nullable: 0
38
  is_nullable: 0
44
39
Lines 50-56 __PACKAGE__->table("suggestions"); Link Here
50
=head2 manageddate
45
=head2 manageddate
51
46
52
  data_type: 'date'
47
  data_type: 'date'
53
  datetime_undef_if_invalid: 1
54
  is_nullable: 1
48
  is_nullable: 1
55
49
56
=head2 acceptedby
50
=head2 acceptedby
Lines 61-67 __PACKAGE__->table("suggestions"); Link Here
61
=head2 accepteddate
55
=head2 accepteddate
62
56
63
  data_type: 'date'
57
  data_type: 'date'
64
  datetime_undef_if_invalid: 1
65
  is_nullable: 1
58
  is_nullable: 1
66
59
67
=head2 rejectedby
60
=head2 rejectedby
Lines 72-78 __PACKAGE__->table("suggestions"); Link Here
72
=head2 rejecteddate
65
=head2 rejecteddate
73
66
74
  data_type: 'date'
67
  data_type: 'date'
75
  datetime_undef_if_invalid: 1
76
  is_nullable: 1
68
  is_nullable: 1
77
69
78
=head2 status
70
=head2 status
Lines 113-119 __PACKAGE__->table("suggestions"); Link Here
113
=head2 date
105
=head2 date
114
106
115
  data_type: 'timestamp'
107
  data_type: 'timestamp'
116
  datetime_undef_if_invalid: 1
117
  default_value: current_timestamp
108
  default_value: current_timestamp
118
  is_nullable: 0
109
  is_nullable: 0
119
110
Lines 215-238 __PACKAGE__->add_columns( Link Here
215
  "suggestedby",
206
  "suggestedby",
216
  { data_type => "integer", default_value => 0, is_nullable => 0 },
207
  { data_type => "integer", default_value => 0, is_nullable => 0 },
217
  "suggesteddate",
208
  "suggesteddate",
218
  {
209
  { data_type => "date", default_value => "0000-00-00", is_nullable => 0 },
219
    data_type => "date",
220
    datetime_undef_if_invalid => 1,
221
    default_value => "0000-00-00",
222
    is_nullable => 0,
223
  },
224
  "managedby",
210
  "managedby",
225
  { data_type => "integer", is_nullable => 1 },
211
  { data_type => "integer", is_nullable => 1 },
226
  "manageddate",
212
  "manageddate",
227
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
213
  { data_type => "date", is_nullable => 1 },
228
  "acceptedby",
214
  "acceptedby",
229
  { data_type => "integer", is_nullable => 1 },
215
  { data_type => "integer", is_nullable => 1 },
230
  "accepteddate",
216
  "accepteddate",
231
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
217
  { data_type => "date", is_nullable => 1 },
232
  "rejectedby",
218
  "rejectedby",
233
  { data_type => "integer", is_nullable => 1 },
219
  { data_type => "integer", is_nullable => 1 },
234
  "rejecteddate",
220
  "rejecteddate",
235
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
221
  { data_type => "date", is_nullable => 1 },
236
  "status",
222
  "status",
237
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
223
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
238
  "note",
224
  "note",
Lines 247-256 __PACKAGE__->add_columns( Link Here
247
  { data_type => "varchar", is_nullable => 1, size => 255 },
233
  { data_type => "varchar", is_nullable => 1, size => 255 },
248
  "date",
234
  "date",
249
  {
235
  {
250
    data_type => "timestamp",
236
    data_type     => "timestamp",
251
    datetime_undef_if_invalid => 1,
252
    default_value => \"current_timestamp",
237
    default_value => \"current_timestamp",
253
    is_nullable => 0,
238
    is_nullable   => 0,
254
  },
239
  },
255
  "volumedesc",
240
  "volumedesc",
256
  { data_type => "varchar", is_nullable => 1, size => 255 },
241
  { data_type => "varchar", is_nullable => 1, size => 255 },
Lines 285-306 __PACKAGE__->add_columns( Link Here
285
  "total",
270
  "total",
286
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
271
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
287
);
272
);
288
289
=head1 PRIMARY KEY
290
291
=over 4
292
293
=item * L</suggestionid>
294
295
=back
296
297
=cut
298
299
__PACKAGE__->set_primary_key("suggestionid");
273
__PACKAGE__->set_primary_key("suggestionid");
300
274
301
275
302
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
276
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
303
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CQRbWbu5MBouyD67ArSRNw
277
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Leu2DWPuf1q/de+LG1cETw
304
278
305
279
306
# You can replace this text with custom content, and it will be preserved on regeneration
280
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Systempreference.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Systempreference;
1
package Koha::Schema::Result::Systempreference;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Systempreference
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<systempreferences>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Systempreference
19
15
20
=cut
16
=cut
21
17
Lines 65-86 __PACKAGE__->add_columns( Link Here
65
  "type",
61
  "type",
66
  { data_type => "varchar", is_nullable => 1, size => 20 },
62
  { data_type => "varchar", is_nullable => 1, size => 20 },
67
);
63
);
68
69
=head1 PRIMARY KEY
70
71
=over 4
72
73
=item * L</variable>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->set_primary_key("variable");
64
__PACKAGE__->set_primary_key("variable");
80
65
81
66
82
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
67
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
83
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WalVf/kVVNRcfYely910iQ
68
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P5qSdblVBL74KQateiAwig
84
69
85
70
86
# You can replace this text with custom content, and it will be preserved on regeneration
71
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Tag.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Tag;
1
package Koha::Schema::Result::Tag;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Tag
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<tags>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Tag
19
15
20
=cut
16
=cut
21
17
Lines 44-65 __PACKAGE__->add_columns( Link Here
44
  "weight",
40
  "weight",
45
  { data_type => "bigint", default_value => 0, is_nullable => 0 },
41
  { data_type => "bigint", default_value => 0, is_nullable => 0 },
46
);
42
);
47
48
=head1 PRIMARY KEY
49
50
=over 4
51
52
=item * L</entry>
53
54
=back
55
56
=cut
57
58
__PACKAGE__->set_primary_key("entry");
43
__PACKAGE__->set_primary_key("entry");
59
44
60
45
61
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
46
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
62
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oXXMdTe9zYBblKs7SE8uPg
47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rDVBEJyucrq1JT1w24Lyhg
63
48
64
49
65
# You can replace this text with custom content, and it will be preserved on regeneration
50
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/TagAll.pm (-29 / +9 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::TagAll;
1
package Koha::Schema::Result::TagAll;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::TagAll
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<tags_all>
11
12
=head1 NAME
13
14
Koha::Schema::Result::TagAll
19
15
20
=cut
16
=cut
21
17
Lines 55-61 __PACKAGE__->table("tags_all"); Link Here
55
=head2 date_created
51
=head2 date_created
56
52
57
  data_type: 'datetime'
53
  data_type: 'datetime'
58
  datetime_undef_if_invalid: 1
59
  is_nullable: 0
54
  is_nullable: 0
60
55
61
=cut
56
=cut
Lines 72-94 __PACKAGE__->add_columns( Link Here
72
  "language",
67
  "language",
73
  { data_type => "integer", is_nullable => 1 },
68
  { data_type => "integer", is_nullable => 1 },
74
  "date_created",
69
  "date_created",
75
  {
70
  { data_type => "datetime", is_nullable => 0 },
76
    data_type => "datetime",
77
    datetime_undef_if_invalid => 1,
78
    is_nullable => 0,
79
  },
80
);
71
);
81
82
=head1 PRIMARY KEY
83
84
=over 4
85
86
=item * L</tag_id>
87
88
=back
89
90
=cut
91
92
__PACKAGE__->set_primary_key("tag_id");
72
__PACKAGE__->set_primary_key("tag_id");
93
73
94
=head1 RELATIONS
74
=head1 RELATIONS
Lines 105-111 __PACKAGE__->belongs_to( Link Here
105
  "biblionumber",
85
  "biblionumber",
106
  "Koha::Schema::Result::Biblio",
86
  "Koha::Schema::Result::Biblio",
107
  { biblionumber => "biblionumber" },
87
  { biblionumber => "biblionumber" },
108
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
88
  { on_delete => "CASCADE", on_update => "CASCADE" },
109
);
89
);
110
90
111
=head2 borrowernumber
91
=head2 borrowernumber
Lines 120-131 __PACKAGE__->belongs_to( Link Here
120
  "borrowernumber",
100
  "borrowernumber",
121
  "Koha::Schema::Result::Borrower",
101
  "Koha::Schema::Result::Borrower",
122
  { borrowernumber => "borrowernumber" },
102
  { borrowernumber => "borrowernumber" },
123
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
103
  { on_delete => "CASCADE", on_update => "CASCADE" },
124
);
104
);
125
105
126
106
127
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
107
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
128
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xhJn9d2lS8crFWog28ENnw
108
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zgwGwma+2qTnQUqkTAjsrg
129
109
130
110
131
# You can replace this text with custom content, and it will be preserved on regeneration
111
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/TagsApproval.pm (-33 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::TagsApproval;
1
package Koha::Schema::Result::TagsApproval;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::TagsApproval
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<tags_approval>
11
12
=head1 NAME
13
14
Koha::Schema::Result::TagsApproval
19
15
20
=cut
16
=cut
21
17
Lines 38-44 __PACKAGE__->table("tags_approval"); Link Here
38
=head2 date_approved
34
=head2 date_approved
39
35
40
  data_type: 'datetime'
36
  data_type: 'datetime'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
37
  is_nullable: 1
43
38
44
=head2 approved_by
39
=head2 approved_by
Lines 61-87 __PACKAGE__->add_columns( Link Here
61
  "approved",
56
  "approved",
62
  { data_type => "integer", default_value => 0, is_nullable => 0 },
57
  { data_type => "integer", default_value => 0, is_nullable => 0 },
63
  "date_approved",
58
  "date_approved",
64
  {
59
  { data_type => "datetime", is_nullable => 1 },
65
    data_type => "datetime",
66
    datetime_undef_if_invalid => 1,
67
    is_nullable => 1,
68
  },
69
  "approved_by",
60
  "approved_by",
70
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
61
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
71
  "weight_total",
62
  "weight_total",
72
  { data_type => "integer", default_value => 1, is_nullable => 0 },
63
  { data_type => "integer", default_value => 1, is_nullable => 0 },
73
);
64
);
74
75
=head1 PRIMARY KEY
76
77
=over 4
78
79
=item * L</term>
80
81
=back
82
83
=cut
84
85
__PACKAGE__->set_primary_key("term");
65
__PACKAGE__->set_primary_key("term");
86
66
87
=head1 RELATIONS
67
=head1 RELATIONS
Lines 98-109 __PACKAGE__->belongs_to( Link Here
98
  "approved_by",
78
  "approved_by",
99
  "Koha::Schema::Result::Borrower",
79
  "Koha::Schema::Result::Borrower",
100
  { borrowernumber => "approved_by" },
80
  { borrowernumber => "approved_by" },
101
  {
81
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
102
    is_deferrable => 1,
103
    join_type     => "LEFT",
104
    on_delete     => "CASCADE",
105
    on_update     => "CASCADE",
106
  },
107
);
82
);
108
83
109
=head2 tags_indexes
84
=head2 tags_indexes
Lines 122-129 __PACKAGE__->has_many( Link Here
122
);
97
);
123
98
124
99
125
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
100
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TcnMQQTB5F8hjyLoJ7VBHQ
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KIlrjfAmSo+kMon1Ctef+A
127
102
128
103
129
# You can replace this text with custom content, and it will be preserved on regeneration
104
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/TagsIndex.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::TagsIndex;
1
package Koha::Schema::Result::TagsIndex;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::TagsIndex
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<tags_index>
11
12
=head1 NAME
13
14
Koha::Schema::Result::TagsIndex
19
15
20
=cut
16
=cut
21
17
Lines 52-70 __PACKAGE__->add_columns( Link Here
52
  "weight",
48
  "weight",
53
  { data_type => "integer", default_value => 1, is_nullable => 0 },
49
  { data_type => "integer", default_value => 1, is_nullable => 0 },
54
);
50
);
55
56
=head1 PRIMARY KEY
57
58
=over 4
59
60
=item * L</term>
61
62
=item * L</biblionumber>
63
64
=back
65
66
=cut
67
68
__PACKAGE__->set_primary_key("term", "biblionumber");
51
__PACKAGE__->set_primary_key("term", "biblionumber");
69
52
70
=head1 RELATIONS
53
=head1 RELATIONS
Lines 81-87 __PACKAGE__->belongs_to( Link Here
81
  "biblionumber",
64
  "biblionumber",
82
  "Koha::Schema::Result::Biblio",
65
  "Koha::Schema::Result::Biblio",
83
  { biblionumber => "biblionumber" },
66
  { biblionumber => "biblionumber" },
84
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
67
  { on_delete => "CASCADE", on_update => "CASCADE" },
85
);
68
);
86
69
87
=head2 term
70
=head2 term
Lines 96-107 __PACKAGE__->belongs_to( Link Here
96
  "term",
79
  "term",
97
  "Koha::Schema::Result::TagsApproval",
80
  "Koha::Schema::Result::TagsApproval",
98
  { term => "term" },
81
  { term => "term" },
99
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
82
  { on_delete => "CASCADE", on_update => "CASCADE" },
100
);
83
);
101
84
102
85
103
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
86
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
104
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LCvvyig+memFWmWUdCStXQ
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5GLcsD5NDmjMq1Pb5RvNqA
105
88
106
89
107
# You can replace this text with custom content, and it will be preserved on regeneration
90
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/TmpHoldsqueue.pm (-12 / +7 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::TmpHoldsqueue;
1
package Koha::Schema::Result::TmpHoldsqueue;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::TmpHoldsqueue
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<tmp_holdsqueue>
11
12
=head1 NAME
13
14
Koha::Schema::Result::TmpHoldsqueue
19
15
20
=cut
16
=cut
21
17
Lines 68-74 __PACKAGE__->table("tmp_holdsqueue"); Link Here
68
=head2 reservedate
64
=head2 reservedate
69
65
70
  data_type: 'date'
66
  data_type: 'date'
71
  datetime_undef_if_invalid: 1
72
  is_nullable: 1
67
  is_nullable: 1
73
68
74
=head2 title
69
=head2 title
Lines 125-131 __PACKAGE__->add_columns( Link Here
125
  "cardnumber",
120
  "cardnumber",
126
  { data_type => "varchar", is_nullable => 1, size => 16 },
121
  { data_type => "varchar", is_nullable => 1, size => 16 },
127
  "reservedate",
122
  "reservedate",
128
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
123
  { data_type => "date", is_nullable => 1 },
129
  "title",
124
  "title",
130
  { data_type => "mediumtext", is_nullable => 1 },
125
  { data_type => "mediumtext", is_nullable => 1 },
131
  "itemcallnumber",
126
  "itemcallnumber",
Lines 141-148 __PACKAGE__->add_columns( Link Here
141
);
136
);
142
137
143
138
144
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
139
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZD6xOAdXuMjglFtNa+DMEQ
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HUO09eSkxI4L6taIU3j59w
146
141
147
142
148
# You can replace this text with custom content, and it will be preserved on regeneration
143
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/TransportCost.pm (-25 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::TransportCost;
1
package Koha::Schema::Result::TransportCost;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::TransportCost
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<transport_cost>
11
12
=head1 NAME
13
14
Koha::Schema::Result::TransportCost
19
15
20
=cut
16
=cut
21
17
Lines 61-79 __PACKAGE__->add_columns( Link Here
61
  "disable_transfer",
57
  "disable_transfer",
62
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
58
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
63
);
59
);
64
65
=head1 PRIMARY KEY
66
67
=over 4
68
69
=item * L</frombranch>
70
71
=item * L</tobranch>
72
73
=back
74
75
=cut
76
77
__PACKAGE__->set_primary_key("frombranch", "tobranch");
60
__PACKAGE__->set_primary_key("frombranch", "tobranch");
78
61
79
=head1 RELATIONS
62
=head1 RELATIONS
Lines 90-96 __PACKAGE__->belongs_to( Link Here
90
  "frombranch",
73
  "frombranch",
91
  "Koha::Schema::Result::Branch",
74
  "Koha::Schema::Result::Branch",
92
  { branchcode => "frombranch" },
75
  { branchcode => "frombranch" },
93
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
76
  { on_delete => "CASCADE", on_update => "CASCADE" },
94
);
77
);
95
78
96
=head2 tobranch
79
=head2 tobranch
Lines 105-116 __PACKAGE__->belongs_to( Link Here
105
  "tobranch",
88
  "tobranch",
106
  "Koha::Schema::Result::Branch",
89
  "Koha::Schema::Result::Branch",
107
  { branchcode => "tobranch" },
90
  { branchcode => "tobranch" },
108
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
91
  { on_delete => "CASCADE", on_update => "CASCADE" },
109
);
92
);
110
93
111
94
112
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
95
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gMs7dT/xK4ClGqQEHI7HOQ
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xNdkqIMuiG/cMRz0QD8IKA
114
97
115
98
116
# You can replace this text with custom content, and it will be preserved on regeneration
99
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/UserPermission.pm (-17 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::UserPermission;
1
package Koha::Schema::Result::UserPermission;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::UserPermission
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<user_permissions>
11
12
=head1 NAME
13
14
Koha::Schema::Result::UserPermission
19
15
20
=cut
16
=cut
21
17
Lines 79-85 __PACKAGE__->belongs_to( Link Here
79
  "borrowernumber",
75
  "borrowernumber",
80
  "Koha::Schema::Result::Borrower",
76
  "Koha::Schema::Result::Borrower",
81
  { borrowernumber => "borrowernumber" },
77
  { borrowernumber => "borrowernumber" },
82
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
78
  { on_delete => "CASCADE", on_update => "CASCADE" },
83
);
79
);
84
80
85
=head2 permission
81
=head2 permission
Lines 94-110 __PACKAGE__->belongs_to( Link Here
94
  "permission",
90
  "permission",
95
  "Koha::Schema::Result::Permission",
91
  "Koha::Schema::Result::Permission",
96
  { code => "code", module_bit => "module_bit" },
92
  { code => "code", module_bit => "module_bit" },
97
  {
93
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
98
    is_deferrable => 1,
99
    join_type     => "LEFT",
100
    on_delete     => "CASCADE",
101
    on_update     => "CASCADE",
102
  },
103
);
94
);
104
95
105
96
106
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
97
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9dMAYxSmVQ1cVKxmnMiMkg
98
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:94n3p5sT/Ma5uU9vqn3f+g
108
99
109
100
110
# You can replace this text with custom content, and it will be preserved on regeneration
101
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Userflag.pm (-21 / +6 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Userflag;
1
package Koha::Schema::Result::Userflag;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Userflag
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<userflags>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Userflag
19
15
20
=cut
16
=cut
21
17
Lines 58-74 __PACKAGE__->add_columns( Link Here
58
  "defaulton",
54
  "defaulton",
59
  { data_type => "integer", is_nullable => 1 },
55
  { data_type => "integer", is_nullable => 1 },
60
);
56
);
61
62
=head1 PRIMARY KEY
63
64
=over 4
65
66
=item * L</bit>
67
68
=back
69
70
=cut
71
72
__PACKAGE__->set_primary_key("bit");
57
__PACKAGE__->set_primary_key("bit");
73
58
74
=head1 RELATIONS
59
=head1 RELATIONS
Lines 89-96 __PACKAGE__->has_many( Link Here
89
);
74
);
90
75
91
76
92
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
77
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A4wiP/AM/pdmYrJmuiYIYg
78
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:17qJwijyzTndpMhwPoiuQA
94
79
95
80
96
# You can replace this text with custom content, and it will be preserved on regeneration
81
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelfcontent.pm (-22 / +11 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Virtualshelfcontent;
1
package Koha::Schema::Result::Virtualshelfcontent;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Virtualshelfcontent
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<virtualshelfcontents>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Virtualshelfcontent
19
15
20
=cut
16
=cut
21
17
Lines 45-51 __PACKAGE__->table("virtualshelfcontents"); Link Here
45
=head2 dateadded
41
=head2 dateadded
46
42
47
  data_type: 'timestamp'
43
  data_type: 'timestamp'
48
  datetime_undef_if_invalid: 1
49
  default_value: current_timestamp
44
  default_value: current_timestamp
50
  is_nullable: 0
45
  is_nullable: 0
51
46
Lines 76-85 __PACKAGE__->add_columns( Link Here
76
  { data_type => "integer", is_nullable => 1 },
71
  { data_type => "integer", is_nullable => 1 },
77
  "dateadded",
72
  "dateadded",
78
  {
73
  {
79
    data_type => "timestamp",
74
    data_type     => "timestamp",
80
    datetime_undef_if_invalid => 1,
81
    default_value => \"current_timestamp",
75
    default_value => \"current_timestamp",
82
    is_nullable => 0,
76
    is_nullable   => 0,
83
  },
77
  },
84
  "borrowernumber",
78
  "borrowernumber",
85
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
79
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
Lines 99-105 __PACKAGE__->belongs_to( Link Here
99
  "biblionumber",
93
  "biblionumber",
100
  "Koha::Schema::Result::Biblio",
94
  "Koha::Schema::Result::Biblio",
101
  { biblionumber => "biblionumber" },
95
  { biblionumber => "biblionumber" },
102
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96
  { on_delete => "CASCADE", on_update => "CASCADE" },
103
);
97
);
104
98
105
=head2 borrowernumber
99
=head2 borrowernumber
Lines 114-125 __PACKAGE__->belongs_to( Link Here
114
  "borrowernumber",
108
  "borrowernumber",
115
  "Koha::Schema::Result::Borrower",
109
  "Koha::Schema::Result::Borrower",
116
  { borrowernumber => "borrowernumber" },
110
  { borrowernumber => "borrowernumber" },
117
  {
111
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
118
    is_deferrable => 1,
119
    join_type     => "LEFT",
120
    on_delete     => "CASCADE",
121
    on_update     => "CASCADE",
122
  },
123
);
112
);
124
113
125
=head2 shelfnumber
114
=head2 shelfnumber
Lines 134-145 __PACKAGE__->belongs_to( Link Here
134
  "shelfnumber",
123
  "shelfnumber",
135
  "Koha::Schema::Result::Virtualshelve",
124
  "Koha::Schema::Result::Virtualshelve",
136
  { shelfnumber => "shelfnumber" },
125
  { shelfnumber => "shelfnumber" },
137
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
126
  { on_delete => "CASCADE", on_update => "CASCADE" },
138
);
127
);
139
128
140
129
141
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
130
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
142
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nhcu0n7BoSNsoY76SYSYFw
131
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YnveTfM6xGZwr2zKoLUJ0g
143
132
144
133
145
# You can replace this text with custom content, and it will be preserved on regeneration
134
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelfshare.pm (-44 / +19 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Virtualshelfshare;
1
package Koha::Schema::Result::Virtualshelfshare;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Virtualshelfshare
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<virtualshelfshares>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Virtualshelfshare
19
15
20
=cut
16
=cut
21
17
Lines 50-56 __PACKAGE__->table("virtualshelfshares"); Link Here
50
=head2 sharedate
46
=head2 sharedate
51
47
52
  data_type: 'datetime'
48
  data_type: 'datetime'
53
  datetime_undef_if_invalid: 1
54
  is_nullable: 1
49
  is_nullable: 1
55
50
56
=cut
51
=cut
Lines 65-129 __PACKAGE__->add_columns( Link Here
65
  "invitekey",
60
  "invitekey",
66
  { data_type => "varchar", is_nullable => 1, size => 10 },
61
  { data_type => "varchar", is_nullable => 1, size => 10 },
67
  "sharedate",
62
  "sharedate",
68
  {
63
  { data_type => "datetime", is_nullable => 1 },
69
    data_type => "datetime",
70
    datetime_undef_if_invalid => 1,
71
    is_nullable => 1,
72
  },
73
);
64
);
74
75
=head1 PRIMARY KEY
76
77
=over 4
78
79
=item * L</id>
80
81
=back
82
83
=cut
84
85
__PACKAGE__->set_primary_key("id");
65
__PACKAGE__->set_primary_key("id");
86
66
87
=head1 RELATIONS
67
=head1 RELATIONS
88
68
89
=head2 borrowernumber
69
=head2 shelfnumber
90
70
91
Type: belongs_to
71
Type: belongs_to
92
72
93
Related object: L<Koha::Schema::Result::Borrower>
73
Related object: L<Koha::Schema::Result::Virtualshelve>
94
74
95
=cut
75
=cut
96
76
97
__PACKAGE__->belongs_to(
77
__PACKAGE__->belongs_to(
98
  "borrowernumber",
78
  "shelfnumber",
99
  "Koha::Schema::Result::Borrower",
79
  "Koha::Schema::Result::Virtualshelve",
100
  { borrowernumber => "borrowernumber" },
80
  { shelfnumber => "shelfnumber" },
101
  {
81
  { on_delete => "CASCADE", on_update => "CASCADE" },
102
    is_deferrable => 1,
103
    join_type     => "LEFT",
104
    on_delete     => "CASCADE",
105
    on_update     => "CASCADE",
106
  },
107
);
82
);
108
83
109
=head2 shelfnumber
84
=head2 borrowernumber
110
85
111
Type: belongs_to
86
Type: belongs_to
112
87
113
Related object: L<Koha::Schema::Result::Virtualshelve>
88
Related object: L<Koha::Schema::Result::Borrower>
114
89
115
=cut
90
=cut
116
91
117
__PACKAGE__->belongs_to(
92
__PACKAGE__->belongs_to(
118
  "shelfnumber",
93
  "borrowernumber",
119
  "Koha::Schema::Result::Virtualshelve",
94
  "Koha::Schema::Result::Borrower",
120
  { shelfnumber => "shelfnumber" },
95
  { borrowernumber => "borrowernumber" },
121
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
122
);
97
);
123
98
124
99
125
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
100
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Eu/4NPwsXI+UMs5QWVsUmA
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XpvBapVYX/6L25vRmRL9xQ
127
102
128
103
129
# You can replace this text with custom content, and it will be preserved on regeneration
104
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Virtualshelve.pm (-45 / +23 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Virtualshelve;
1
package Koha::Schema::Result::Virtualshelve;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Virtualshelve
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<virtualshelves>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Virtualshelve
19
15
20
=cut
16
=cut
21
17
Lines 56-62 __PACKAGE__->table("virtualshelves"); Link Here
56
=head2 lastmodified
52
=head2 lastmodified
57
53
58
  data_type: 'timestamp'
54
  data_type: 'timestamp'
59
  datetime_undef_if_invalid: 1
60
  default_value: current_timestamp
55
  default_value: current_timestamp
61
  is_nullable: 0
56
  is_nullable: 0
62
57
Lines 93-102 __PACKAGE__->add_columns( Link Here
93
  { data_type => "varchar", is_nullable => 1, size => 16 },
88
  { data_type => "varchar", is_nullable => 1, size => 16 },
94
  "lastmodified",
89
  "lastmodified",
95
  {
90
  {
96
    data_type => "timestamp",
91
    data_type     => "timestamp",
97
    datetime_undef_if_invalid => 1,
98
    default_value => \"current_timestamp",
92
    default_value => \"current_timestamp",
99
    is_nullable => 0,
93
    is_nullable   => 0,
100
  },
94
  },
101
  "allow_add",
95
  "allow_add",
102
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
96
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
Lines 105-145 __PACKAGE__->add_columns( Link Here
105
  "allow_delete_other",
99
  "allow_delete_other",
106
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
100
  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
107
);
101
);
108
109
=head1 PRIMARY KEY
110
111
=over 4
112
113
=item * L</shelfnumber>
114
115
=back
116
117
=cut
118
119
__PACKAGE__->set_primary_key("shelfnumber");
102
__PACKAGE__->set_primary_key("shelfnumber");
120
103
121
=head1 RELATIONS
104
=head1 RELATIONS
122
105
123
=head2 owner
124
125
Type: belongs_to
126
127
Related object: L<Koha::Schema::Result::Borrower>
128
129
=cut
130
131
__PACKAGE__->belongs_to(
132
  "owner",
133
  "Koha::Schema::Result::Borrower",
134
  { borrowernumber => "owner" },
135
  {
136
    is_deferrable => 1,
137
    join_type     => "LEFT",
138
    on_delete     => "CASCADE",
139
    on_update     => "CASCADE",
140
  },
141
);
142
143
=head2 virtualshelfcontents
106
=head2 virtualshelfcontents
144
107
145
Type: has_many
108
Type: has_many
Lines 170-178 __PACKAGE__->has_many( Link Here
170
  { cascade_copy => 0, cascade_delete => 0 },
133
  { cascade_copy => 0, cascade_delete => 0 },
171
);
134
);
172
135
136
=head2 owner
137
138
Type: belongs_to
139
140
Related object: L<Koha::Schema::Result::Borrower>
141
142
=cut
143
144
__PACKAGE__->belongs_to(
145
  "owner",
146
  "Koha::Schema::Result::Borrower",
147
  { borrowernumber => "owner" },
148
  { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
149
);
150
173
151
174
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
152
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdBpWgSdrE0l13vKgDRcGg
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Aj0XoKBPMI68mc1+Gm4wEA
176
154
177
155
178
# You can replace this text with custom content, and it will be preserved on regeneration
156
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Z3950server.pm (-23 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Z3950server;
1
package Koha::Schema::Result::Z3950server;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Z3950server
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<z3950servers>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Z3950server
19
15
20
=cut
16
=cut
21
17
Lines 94-100 __PACKAGE__->table("z3950servers"); Link Here
94
90
95
  data_type: 'enum'
91
  data_type: 'enum'
96
  default_value: 'primary'
92
  default_value: 'primary'
97
  extra: {list => ["primary","secondary"]}
93
  extra: {list => ["primary","secondary",""]}
98
  is_nullable: 0
94
  is_nullable: 0
99
95
100
=head2 type
96
=head2 type
Lines 152-158 __PACKAGE__->add_columns( Link Here
152
  {
148
  {
153
    data_type => "enum",
149
    data_type => "enum",
154
    default_value => "primary",
150
    default_value => "primary",
155
    extra => { list => ["primary", "secondary"] },
151
    extra => { list => ["primary", "secondary", ""] },
156
    is_nullable => 0,
152
    is_nullable => 0,
157
  },
153
  },
158
  "type",
154
  "type",
Lines 174-195 __PACKAGE__->add_columns( Link Here
174
    size => 45,
170
    size => 45,
175
  },
171
  },
176
);
172
);
177
178
=head1 PRIMARY KEY
179
180
=over 4
181
182
=item * L</id>
183
184
=back
185
186
=cut
187
188
__PACKAGE__->set_primary_key("id");
173
__PACKAGE__->set_primary_key("id");
189
174
190
175
191
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
176
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
192
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j/AgGQDMyR5wm1wooSYYDw
177
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eNyBaY0hbzCFuV0O1zt3Vg
193
178
194
179
195
# You can replace this text with custom content, and it will be preserved on regeneration
180
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Zebraqueue.pm (-26 / +8 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Zebraqueue;
1
package Koha::Schema::Result::Zebraqueue;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Zebraqueue
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<zebraqueue>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Zebraqueue
19
15
20
=cut
16
=cut
21
17
Lines 59-65 __PACKAGE__->table("zebraqueue"); Link Here
59
=head2 time
55
=head2 time
60
56
61
  data_type: 'timestamp'
57
  data_type: 'timestamp'
62
  datetime_undef_if_invalid: 1
63
  default_value: current_timestamp
58
  default_value: current_timestamp
64
  is_nullable: 0
59
  is_nullable: 0
65
60
Lines 83-110 __PACKAGE__->add_columns( Link Here
83
  { data_type => "integer", default_value => 0, is_nullable => 0 },
78
  { data_type => "integer", default_value => 0, is_nullable => 0 },
84
  "time",
79
  "time",
85
  {
80
  {
86
    data_type => "timestamp",
81
    data_type     => "timestamp",
87
    datetime_undef_if_invalid => 1,
88
    default_value => \"current_timestamp",
82
    default_value => \"current_timestamp",
89
    is_nullable => 0,
83
    is_nullable   => 0,
90
  },
84
  },
91
);
85
);
92
93
=head1 PRIMARY KEY
94
95
=over 4
96
97
=item * L</id>
98
99
=back
100
101
=cut
102
103
__PACKAGE__->set_primary_key("id");
86
__PACKAGE__->set_primary_key("id");
104
87
105
88
106
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
89
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-10-31 07:41:39
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vU9ROiVUwXc7jhKt728dRg
90
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q2GyxszPTQyLPP9pQWeecg
108
91
109
92
110
# You can replace this text with custom content, and it will be preserved on regeneration
93
# You can replace this text with custom content, and it will be preserved on regeneration
111
- 

Return to bug 6427