View | Details | Raw Unified | Return to bug 25103
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-09 20:37:10
179
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2Wzevhr//Lr9VgPd9uHe0g
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 (-6 / +23 lines)
Lines 98-107 __PACKAGE__->table("issues"); Link Here
98
98
99
=head2 checkout_type
99
=head2 checkout_type
100
100
101
  data_type: 'enum'
101
  data_type: 'varchar'
102
  default_value: 'CHECKOUT'
102
  default_value: 'CHECKOUT'
103
  extra: {list => ["CHECKOUT","ONSITE"]}
103
  is_foreign_key: 1
104
  is_nullable: 0
104
  is_nullable: 0
105
  size: 80
105
106
106
=head2 note
107
=head2 note
107
108
Lines 169-178 __PACKAGE__->add_columns( Link Here
169
  },
170
  },
170
  "checkout_type",
171
  "checkout_type",
171
  {
172
  {
172
    data_type => "enum",
173
    data_type => "varchar",
173
    default_value => "CHECKOUT",
174
    default_value => "CHECKOUT",
174
    extra => { list => ["CHECKOUT", "ONSITE"] },
175
    is_foreign_key => 1,
175
    is_nullable => 0,
176
    is_nullable => 0,
177
    size => 80,
176
  },
178
  },
177
  "note",
179
  "note",
178
  { data_type => "longtext", is_nullable => 1 },
180
  { data_type => "longtext", is_nullable => 1 },
Lines 234-239 __PACKAGE__->belongs_to( Link Here
234
  },
236
  },
235
);
237
);
236
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
237
=head2 itemnumber
254
=head2 itemnumber
238
255
239
Type: belongs_to
256
Type: belongs_to
Lines 270-277 __PACKAGE__->might_have( Link Here
270
);
287
);
271
288
272
289
273
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-09 19:47:02
290
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-09 20:37:11
274
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GIV9oEe2GeiJ/zIg2kZlwA
291
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KAsgzxUm3iuntNs/rQnBgA
275
292
276
__PACKAGE__->add_columns(
293
__PACKAGE__->add_columns(
277
    '+auto_renew'      => { is_boolean => 1 }
294
    '+auto_renew'      => { is_boolean => 1 }
(-)a/Koha/Schema/Result/OldIssue.pm (-7 / +23 lines)
Lines 97-106 __PACKAGE__->table("old_issues"); Link Here
97
97
98
=head2 checkout_type
98
=head2 checkout_type
99
99
100
  data_type: 'enum'
100
  data_type: 'varchar'
101
  default_value: 'CHECKOUT'
101
  default_value: 'CHECKOUT'
102
  extra: {list => ["CHECKOUT","ONSITE"]}
102
  is_foreign_key: 1
103
  is_nullable: 0
103
  is_nullable: 0
104
  size: 80
104
105
105
=head2 note
106
=head2 note
106
107
Lines 168-177 __PACKAGE__->add_columns( Link Here
168
  },
169
  },
169
  "checkout_type",
170
  "checkout_type",
170
  {
171
  {
171
    data_type => "enum",
172
    data_type => "varchar",
172
    default_value => "CHECKOUT",
173
    default_value => "CHECKOUT",
173
    extra => { list => ["CHECKOUT", "ONSITE"] },
174
    is_foreign_key => 1,
174
    is_nullable => 0,
175
    is_nullable => 0,
176
    size => 80,
175
  },
177
  },
176
  "note",
178
  "note",
177
  { data_type => "longtext", is_nullable => 1 },
179
  { data_type => "longtext", is_nullable => 1 },
Lines 219-224 __PACKAGE__->belongs_to( Link Here
219
  },
221
  },
220
);
222
);
221
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
222
=head2 itemnumber
239
=head2 itemnumber
223
240
224
Type: belongs_to
241
Type: belongs_to
Lines 240-247 __PACKAGE__->belongs_to( Link Here
240
);
257
);
241
258
242
259
243
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-09 19:47:02
260
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-09 20:37:11
244
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J7jzh/kOsynQr52uSGxQ/A
261
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gyjaefP3JtK14XMHw2QyTg
245
262
246
__PACKAGE__->add_columns(
263
__PACKAGE__->add_columns(
247
    '+auto_renew'      => { is_boolean => 1 }
264
    '+auto_renew'      => { is_boolean => 1 }
248
- 

Return to bug 25103