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

(-)a/Koha/Schema/Result/AuthorisedValue.pm (-2 / +32 lines)
Lines 144-152 __PACKAGE__->has_many( Link Here
144
  { cascade_copy => 0, cascade_delete => 0 },
144
  { cascade_copy => 0, cascade_delete => 0 },
145
);
145
);
146
146
147
=head2 issues
147
148
148
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-02-22 14:32:48
149
Type: has_many
149
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hDlebhEn+f+thqwBo/LOqQ
150
151
Related object: L<Koha::Schema::Result::Issue>
152
153
=cut
154
155
__PACKAGE__->has_many(
156
  "issues",
157
  "Koha::Schema::Result::Issue",
158
  { "foreign.checkout_type" => "self.authorised_value" },
159
  { cascade_copy => 0, cascade_delete => 0 },
160
);
161
162
=head2 old_issues
163
164
Type: has_many
165
166
Related object: L<Koha::Schema::Result::OldIssue>
167
168
=cut
169
170
__PACKAGE__->has_many(
171
  "old_issues",
172
  "Koha::Schema::Result::OldIssue",
173
  { "foreign.checkout_type" => "self.authorised_value" },
174
  { cascade_copy => 0, cascade_delete => 0 },
175
);
176
177
178
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-01 16:24:27
179
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3/nSpPKD664Mmv6ce/Y1pA
150
180
151
181
152
# You can replace this text with custom code or comments, and it will be preserved on regeneration
182
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Issue.pm (-9 / +29 lines)
Lines 96-106 __PACKAGE__->table("issues"); Link Here
96
  datetime_undef_if_invalid: 1
96
  datetime_undef_if_invalid: 1
97
  is_nullable: 1
97
  is_nullable: 1
98
98
99
=head2 onsite_checkout
99
=head2 checkout_type
100
100
101
  data_type: 'integer'
101
  data_type: 'varchar'
102
  default_value: 0
102
  is_foreign_key: 1
103
  is_nullable: 0
103
  is_nullable: 1
104
  size: 80
104
105
105
=head2 note
106
=head2 note
106
107
Lines 166-173 __PACKAGE__->add_columns( Link Here
166
    datetime_undef_if_invalid => 1,
167
    datetime_undef_if_invalid => 1,
167
    is_nullable => 1,
168
    is_nullable => 1,
168
  },
169
  },
169
  "onsite_checkout",
170
  "checkout_type",
170
  { data_type => "integer", default_value => 0, is_nullable => 0 },
171
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
171
  "note",
172
  "note",
172
  { data_type => "longtext", is_nullable => 1 },
173
  { data_type => "longtext", is_nullable => 1 },
173
  "notedate",
174
  "notedate",
Lines 228-233 __PACKAGE__->belongs_to( Link Here
228
  },
229
  },
229
);
230
);
230
231
232
=head2 checkout_type
233
234
Type: belongs_to
235
236
Related object: L<Koha::Schema::Result::AuthorisedValue>
237
238
=cut
239
240
__PACKAGE__->belongs_to(
241
  "checkout_type",
242
  "Koha::Schema::Result::AuthorisedValue",
243
  { authorised_value => "checkout_type" },
244
  {
245
    is_deferrable => 1,
246
    join_type     => "LEFT",
247
    on_delete     => "SET NULL",
248
    on_update     => "CASCADE",
249
  },
250
);
251
231
=head2 itemnumber
252
=head2 itemnumber
232
253
233
Type: belongs_to
254
Type: belongs_to
Lines 264-275 __PACKAGE__->might_have( Link Here
264
);
285
);
265
286
266
287
267
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-31 12:18:38
288
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-01 16:24:27
268
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QVmFa5b0Pe5OhUI92n9kzQ
289
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:la6YkyDEDwCzfscXmq5R5Q
269
290
270
__PACKAGE__->add_columns(
291
__PACKAGE__->add_columns(
271
    '+auto_renew'      => { is_boolean => 1 },
292
    '+auto_renew'      => { is_boolean => 1 },
272
    '+onsite_checkout' => { is_boolean => 1 }
273
);
293
);
274
294
275
__PACKAGE__->belongs_to(
295
__PACKAGE__->belongs_to(
(-)a/Koha/Schema/Result/OldIssue.pm (-10 / +29 lines)
Lines 95-105 __PACKAGE__->table("old_issues"); Link Here
95
  datetime_undef_if_invalid: 1
95
  datetime_undef_if_invalid: 1
96
  is_nullable: 1
96
  is_nullable: 1
97
97
98
=head2 onsite_checkout
98
=head2 checkout_type
99
99
100
  data_type: 'integer'
100
  data_type: 'varchar'
101
  default_value: 0
101
  is_foreign_key: 1
102
  is_nullable: 0
102
  is_nullable: 1
103
  size: 80
103
104
104
=head2 note
105
=head2 note
105
106
Lines 165-172 __PACKAGE__->add_columns( Link Here
165
    datetime_undef_if_invalid => 1,
166
    datetime_undef_if_invalid => 1,
166
    is_nullable => 1,
167
    is_nullable => 1,
167
  },
168
  },
168
  "onsite_checkout",
169
  "checkout_type",
169
  { data_type => "integer", default_value => 0, is_nullable => 0 },
170
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
170
  "note",
171
  "note",
171
  { data_type => "longtext", is_nullable => 1 },
172
  { data_type => "longtext", is_nullable => 1 },
172
  "notedate",
173
  "notedate",
Lines 213-218 __PACKAGE__->belongs_to( Link Here
213
  },
214
  },
214
);
215
);
215
216
217
=head2 checkout_type
218
219
Type: belongs_to
220
221
Related object: L<Koha::Schema::Result::AuthorisedValue>
222
223
=cut
224
225
__PACKAGE__->belongs_to(
226
  "checkout_type",
227
  "Koha::Schema::Result::AuthorisedValue",
228
  { authorised_value => "checkout_type" },
229
  {
230
    is_deferrable => 1,
231
    join_type     => "LEFT",
232
    on_delete     => "SET NULL",
233
    on_update     => "CASCADE",
234
  },
235
);
236
216
=head2 itemnumber
237
=head2 itemnumber
217
238
218
Type: belongs_to
239
Type: belongs_to
Lines 234-245 __PACKAGE__->belongs_to( Link Here
234
);
255
);
235
256
236
257
237
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-10 19:55:44
258
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-01 16:24:27
238
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E2N2paWcCHg916100ry+2A
259
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LQNWHEvYKH767RYxYfYPHw
239
260
240
__PACKAGE__->add_columns(
261
__PACKAGE__->add_columns(
241
    '+auto_renew'      => { is_boolean => 1 },
262
    '+auto_renew'      => { is_boolean => 1 },
242
    '+onsite_checkout' => { is_boolean => 1 }
243
);
263
);
244
264
245
__PACKAGE__->belongs_to(
265
__PACKAGE__->belongs_to(
246
- 

Return to bug 25037