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 (-8 / +30 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
  default_value: 'C'
103
  is_foreign_key: 1
103
  is_nullable: 0
104
  is_nullable: 0
105
  size: 80
104
106
105
=head2 note
107
=head2 note
106
108
Lines 166-173 __PACKAGE__->add_columns( Link Here
166
    datetime_undef_if_invalid => 1,
168
    datetime_undef_if_invalid => 1,
167
    is_nullable => 1,
169
    is_nullable => 1,
168
  },
170
  },
169
  "onsite_checkout",
171
  "checkout_type",
170
  { data_type => "integer", default_value => 0, is_nullable => 0 },
172
  {
173
    data_type => "varchar",
174
    default_value => "C",
175
    is_foreign_key => 1,
176
    is_nullable => 0,
177
    size => 80,
178
  },
171
  "note",
179
  "note",
172
  { data_type => "longtext", is_nullable => 1 },
180
  { data_type => "longtext", is_nullable => 1 },
173
  "notedate",
181
  "notedate",
Lines 228-233 __PACKAGE__->belongs_to( Link Here
228
  },
236
  },
229
);
237
);
230
238
239
=head2 checkout_type
240
241
Type: belongs_to
242
243
Related object: L<Koha::Schema::Result::AuthorisedValue>
244
245
=cut
246
247
__PACKAGE__->belongs_to(
248
  "checkout_type",
249
  "Koha::Schema::Result::AuthorisedValue",
250
  { authorised_value => "checkout_type" },
251
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" },
252
);
253
231
=head2 itemnumber
254
=head2 itemnumber
232
255
233
Type: belongs_to
256
Type: belongs_to
Lines 264-275 __PACKAGE__->might_have( Link Here
264
);
287
);
265
288
266
289
267
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-31 12:18:38
290
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-08 16:40:45
268
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QVmFa5b0Pe5OhUI92n9kzQ
291
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KsHohP+zKd/unLT1QptXsg
269
292
270
__PACKAGE__->add_columns(
293
__PACKAGE__->add_columns(
271
    '+auto_renew'      => { is_boolean => 1 },
294
    '+auto_renew'      => { is_boolean => 1 },
272
    '+onsite_checkout' => { is_boolean => 1 }
273
);
295
);
274
296
275
__PACKAGE__->belongs_to(
297
__PACKAGE__->belongs_to(
(-)a/Koha/Schema/Result/OldIssue.pm (-9 / +30 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
  default_value: 'C'
102
  is_foreign_key: 1
102
  is_nullable: 0
103
  is_nullable: 0
104
  size: 80
103
105
104
=head2 note
106
=head2 note
105
107
Lines 165-172 __PACKAGE__->add_columns( Link Here
165
    datetime_undef_if_invalid => 1,
167
    datetime_undef_if_invalid => 1,
166
    is_nullable => 1,
168
    is_nullable => 1,
167
  },
169
  },
168
  "onsite_checkout",
170
  "checkout_type",
169
  { data_type => "integer", default_value => 0, is_nullable => 0 },
171
  {
172
    data_type => "varchar",
173
    default_value => "C",
174
    is_foreign_key => 1,
175
    is_nullable => 0,
176
    size => 80,
177
  },
170
  "note",
178
  "note",
171
  { data_type => "longtext", is_nullable => 1 },
179
  { data_type => "longtext", is_nullable => 1 },
172
  "notedate",
180
  "notedate",
Lines 213-218 __PACKAGE__->belongs_to( Link Here
213
  },
221
  },
214
);
222
);
215
223
224
=head2 checkout_type
225
226
Type: belongs_to
227
228
Related object: L<Koha::Schema::Result::AuthorisedValue>
229
230
=cut
231
232
__PACKAGE__->belongs_to(
233
  "checkout_type",
234
  "Koha::Schema::Result::AuthorisedValue",
235
  { authorised_value => "checkout_type" },
236
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" },
237
);
238
216
=head2 itemnumber
239
=head2 itemnumber
217
240
218
Type: belongs_to
241
Type: belongs_to
Lines 234-245 __PACKAGE__->belongs_to( Link Here
234
);
257
);
235
258
236
259
237
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-10 19:55:44
260
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-08 16:40:45
238
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E2N2paWcCHg916100ry+2A
261
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:75LxdVEvKFyi0RFqGzin5g
239
262
240
__PACKAGE__->add_columns(
263
__PACKAGE__->add_columns(
241
    '+auto_renew'      => { is_boolean => 1 },
264
    '+auto_renew'      => { is_boolean => 1 },
242
    '+onsite_checkout' => { is_boolean => 1 }
243
);
265
);
244
266
245
__PACKAGE__->belongs_to(
267
__PACKAGE__->belongs_to(
246
- 

Return to bug 25037