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

(-)a/Koha/Schema/Result/Accountline.pm (-3 / +52 lines)
Lines 32-37 __PACKAGE__->table("accountlines"); Link Here
32
=head2 issue_id
32
=head2 issue_id
33
33
34
  data_type: 'integer'
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 1
37
38
=head2 old_issue_id
39
40
  data_type: 'integer'
41
  is_foreign_key: 1
35
  is_nullable: 1
42
  is_nullable: 1
36
43
37
=head2 borrowernumber
44
=head2 borrowernumber
Lines 150-156 __PACKAGE__->add_columns( Link Here
150
  "accountlines_id",
157
  "accountlines_id",
151
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
158
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
152
  "issue_id",
159
  "issue_id",
153
  { data_type => "integer", is_nullable => 1 },
160
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
161
  "old_issue_id",
162
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
154
  "borrowernumber",
163
  "borrowernumber",
155
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
164
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
156
  "itemnumber",
165
  "itemnumber",
Lines 335-340 __PACKAGE__->belongs_to( Link Here
335
  },
344
  },
336
);
345
);
337
346
347
=head2 issue
348
349
Type: belongs_to
350
351
Related object: L<Koha::Schema::Result::Issue>
352
353
=cut
354
355
__PACKAGE__->belongs_to(
356
  "issue",
357
  "Koha::Schema::Result::Issue",
358
  { issue_id => "issue_id" },
359
  {
360
    is_deferrable => 1,
361
    join_type     => "LEFT",
362
    on_delete     => "SET NULL",
363
    on_update     => "CASCADE",
364
  },
365
);
366
338
=head2 itemnumber
367
=head2 itemnumber
339
368
340
Type: belongs_to
369
Type: belongs_to
Lines 375-380 __PACKAGE__->belongs_to( Link Here
375
  },
404
  },
376
);
405
);
377
406
407
=head2 old_issue
408
409
Type: belongs_to
410
411
Related object: L<Koha::Schema::Result::OldIssue>
412
413
=cut
414
415
__PACKAGE__->belongs_to(
416
  "old_issue",
417
  "Koha::Schema::Result::OldIssue",
418
  { issue_id => "old_issue_id" },
419
  {
420
    is_deferrable => 1,
421
    join_type     => "LEFT",
422
    on_delete     => "SET NULL",
423
    on_update     => "CASCADE",
424
  },
425
);
426
378
=head2 register
427
=head2 register
379
428
380
Type: belongs_to
429
Type: belongs_to
Lines 396-403 __PACKAGE__->belongs_to( Link Here
396
);
445
);
397
446
398
447
399
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:21:02
448
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-02-08 14:18:03
400
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PjQR7oUkefiDt+eV69jZ3A
449
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aVLdvK1lek01lZ0mbaCwZQ
401
450
402
=head2 patron
451
=head2 patron
403
452
(-)a/Koha/Schema/Result/Issue.pm (-2 / +17 lines)
Lines 260-265 __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); Link Here
260
260
261
=head1 RELATIONS
261
=head1 RELATIONS
262
262
263
=head2 accountlines
264
265
Type: has_many
266
267
Related object: L<Koha::Schema::Result::Accountline>
268
269
=cut
270
271
__PACKAGE__->has_many(
272
  "accountlines",
273
  "Koha::Schema::Result::Accountline",
274
  { "foreign.issue_id" => "self.issue_id" },
275
  { cascade_copy => 0, cascade_delete => 0 },
276
);
277
263
=head2 borrowernumber
278
=head2 borrowernumber
264
279
265
Type: belongs_to
280
Type: belongs_to
Lines 311-318 __PACKAGE__->belongs_to( Link Here
311
);
326
);
312
327
313
328
314
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-12 11:34:50
329
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-02-08 14:18:03
315
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eNzDAKc3bmTLWeDu8u4nTQ
330
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7VMPEayWBRQ9ga7uhQGR4w
316
331
317
__PACKAGE__->add_columns(
332
__PACKAGE__->add_columns(
318
    '+auto_renew'      => { is_boolean => 1 },
333
    '+auto_renew'      => { is_boolean => 1 },
(-)a/Koha/Schema/Result/OldIssue.pm (-3 / +17 lines)
Lines 245-250 __PACKAGE__->set_primary_key("issue_id"); Link Here
245
245
246
=head1 RELATIONS
246
=head1 RELATIONS
247
247
248
=head2 accountlines
249
250
Type: has_many
251
252
Related object: L<Koha::Schema::Result::Accountline>
253
254
=cut
255
256
__PACKAGE__->has_many(
257
  "accountlines",
258
  "Koha::Schema::Result::Accountline",
259
  { "foreign.old_issue_id" => "self.issue_id" },
260
  { cascade_copy => 0, cascade_delete => 0 },
261
);
262
248
=head2 borrowernumber
263
=head2 borrowernumber
249
264
250
Type: belongs_to
265
Type: belongs_to
Lines 306-313 __PACKAGE__->belongs_to( Link Here
306
);
321
);
307
322
308
323
309
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-18 12:35:21
324
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-02-08 14:18:03
310
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0XlDHyg8uB3oD9/jJtOxRg
325
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pp1/8rwY5N9NBkgNCagvow
311
326
312
__PACKAGE__->add_columns(
327
__PACKAGE__->add_columns(
313
    '+auto_renew'      => { is_boolean => 1 },
328
    '+auto_renew'      => { is_boolean => 1 },
314
- 

Return to bug 22421