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

(-)a/Koha/Schema/Result/Aqbookseller.pm (-2 / +17 lines)
Lines 494-499 __PACKAGE__->belongs_to( Link Here
494
  },
494
  },
495
);
495
);
496
496
497
=head2 subscriptions
498
499
Type: has_many
500
501
Related object: L<Koha::Schema::Result::Subscription>
502
503
=cut
504
505
__PACKAGE__->has_many(
506
  "subscriptions",
507
  "Koha::Schema::Result::Subscription",
508
  { "foreign.aqbooksellerid" => "self.id" },
509
  { cascade_copy => 0, cascade_delete => 0 },
510
);
511
497
=head2 vendor_edi_accounts
512
=head2 vendor_edi_accounts
498
513
499
Type: has_many
514
Type: has_many
Lines 510-517 __PACKAGE__->has_many( Link Here
510
);
525
);
511
526
512
527
513
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-30 09:54:35
528
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-07 11:31:56
514
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xjeOqpcdN3Kb1wmLGDjzLg
529
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E6f6AyKIiLOJ/rFkNTZcUw
515
530
516
__PACKAGE__->add_columns(
531
__PACKAGE__->add_columns(
517
    '+active' => { is_boolean => 1 },
532
    '+active' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Subscription.pm (-5 / +24 lines)
Lines 59-65 start date for this subscription Link Here
59
=head2 aqbooksellerid
59
=head2 aqbooksellerid
60
60
61
  data_type: 'integer'
61
  data_type: 'integer'
62
  default_value: 0
62
  is_foreign_key: 1
63
  is_nullable: 1
63
  is_nullable: 1
64
64
65
foreign key for aqbooksellers.id to link to the vendor
65
foreign key for aqbooksellers.id to link to the vendor
Lines 353-359 __PACKAGE__->add_columns( Link Here
353
  "startdate",
353
  "startdate",
354
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
354
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
355
  "aqbooksellerid",
355
  "aqbooksellerid",
356
  { data_type => "integer", default_value => 0, is_nullable => 1 },
356
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
357
  "cost",
357
  "cost",
358
  { data_type => "integer", default_value => 0, is_nullable => 1 },
358
  { data_type => "integer", default_value => 0, is_nullable => 1 },
359
  "aqbudgetid",
359
  "aqbudgetid",
Lines 450-455 __PACKAGE__->set_primary_key("subscriptionid"); Link Here
450
450
451
=head1 RELATIONS
451
=head1 RELATIONS
452
452
453
=head2 aqbooksellerid
454
455
Type: belongs_to
456
457
Related object: L<Koha::Schema::Result::Aqbookseller>
458
459
=cut
460
461
__PACKAGE__->belongs_to(
462
  "aqbooksellerid",
463
  "Koha::Schema::Result::Aqbookseller",
464
  { id => "aqbooksellerid" },
465
  {
466
    is_deferrable => 1,
467
    join_type     => "LEFT",
468
    on_delete     => "SET NULL",
469
    on_update     => "CASCADE",
470
  },
471
);
472
453
=head2 aqorders
473
=head2 aqorders
454
474
455
Type: has_many
475
Type: has_many
Lines 566-573 __PACKAGE__->has_many( Link Here
566
);
586
);
567
587
568
588
569
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-14 11:46:15
589
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-07 11:31:56
570
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LICIiWzag365cUAq5OYD2A
590
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qd3CxnE91Zjvs8LXPEDV6Q
571
591
572
__PACKAGE__->has_many(
592
__PACKAGE__->has_many(
573
  "additional_field_values",
593
  "additional_field_values",
574
- 

Return to bug 38011