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

(-)a/Koha/Schema/Result/Borrower.pm (-5 / +14 lines)
Lines 425-431 __PACKAGE__->table("borrowers"); Link Here
425
425
426
  data_type: 'timestamp'
426
  data_type: 'timestamp'
427
  datetime_undef_if_invalid: 1
427
  datetime_undef_if_invalid: 1
428
  default_value: current_timestamp
428
  default_value: 'current_timestamp()'
429
  is_nullable: 0
429
  is_nullable: 0
430
430
431
=head2 lastseen
431
=head2 lastseen
Lines 458-463 __PACKAGE__->table("borrowers"); Link Here
458
  default_value: 0
458
  default_value: 0
459
  is_nullable: 0
459
  is_nullable: 0
460
460
461
=head2 autorenewal
462
463
  data_type: 'tinyint'
464
  default_value: 1
465
  is_nullable: 0
466
461
=cut
467
=cut
462
468
463
__PACKAGE__->add_columns(
469
__PACKAGE__->add_columns(
Lines 640-646 __PACKAGE__->add_columns( Link Here
640
  {
646
  {
641
    data_type => "timestamp",
647
    data_type => "timestamp",
642
    datetime_undef_if_invalid => 1,
648
    datetime_undef_if_invalid => 1,
643
    default_value => \"current_timestamp",
649
    default_value => "current_timestamp()",
644
    is_nullable => 0,
650
    is_nullable => 0,
645
  },
651
  },
646
  "lastseen",
652
  "lastseen",
Lines 662-667 __PACKAGE__->add_columns( Link Here
662
  { data_type => "mediumtext", is_nullable => 1 },
668
  { data_type => "mediumtext", is_nullable => 1 },
663
  "anonymized",
669
  "anonymized",
664
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
670
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
671
  "autorenewal",
672
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
665
);
673
);
666
674
667
=head1 PRIMARY KEY
675
=head1 PRIMARY KEY
Lines 1635-1648 Composing rels: L</aqorder_users> -> ordernumber Link Here
1635
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1643
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1636
1644
1637
1645
1638
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-10 14:31:00
1646
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-23 17:37:01
1639
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GjJLIOViIFRm185Yjl9vYA
1647
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+/fMiLexYzotvw+6ZDGKgw
1640
1648
1641
__PACKAGE__->add_columns(
1649
__PACKAGE__->add_columns(
1642
    '+anonymized'    => { is_boolean => 1 },
1650
    '+anonymized'    => { is_boolean => 1 },
1643
    '+lost'          => { is_boolean => 1 },
1651
    '+lost'          => { is_boolean => 1 },
1644
    '+gonenoaddress' => { is_boolean => 1 },
1652
    '+gonenoaddress' => { is_boolean => 1 },
1645
    '+privacy_guarantor_fines' => { is_boolean => 1 }
1653
    '+privacy_guarantor_fines' => { is_boolean => 1 },
1654
    '+autorenewal' => { is_boolean => 1 }
1646
);
1655
);
1647
1656
1648
sub koha_objects_class {
1657
sub koha_objects_class {
(-)a/Koha/Schema/Result/BorrowerModification.pm (-4 / +12 lines)
Lines 27-33 __PACKAGE__->table("borrower_modifications"); Link Here
27
27
28
  data_type: 'timestamp'
28
  data_type: 'timestamp'
29
  datetime_undef_if_invalid: 1
29
  datetime_undef_if_invalid: 1
30
  default_value: current_timestamp
30
  default_value: 'current_timestamp()'
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
=head2 verification_token
33
=head2 verification_token
Lines 421-426 __PACKAGE__->table("borrower_modifications"); Link Here
421
  datetime_undef_if_invalid: 1
421
  datetime_undef_if_invalid: 1
422
  is_nullable: 1
422
  is_nullable: 1
423
423
424
=head2 autorenewal
425
426
  data_type: 'tinyint'
427
  default_value: 1
428
  is_nullable: 0
429
424
=cut
430
=cut
425
431
426
__PACKAGE__->add_columns(
432
__PACKAGE__->add_columns(
Lines 428-434 __PACKAGE__->add_columns( Link Here
428
  {
434
  {
429
    data_type => "timestamp",
435
    data_type => "timestamp",
430
    datetime_undef_if_invalid => 1,
436
    datetime_undef_if_invalid => 1,
431
    default_value => \"current_timestamp",
437
    default_value => "current_timestamp()",
432
    is_nullable => 0,
438
    is_nullable => 0,
433
  },
439
  },
434
  "verification_token",
440
  "verification_token",
Lines 593-598 __PACKAGE__->add_columns( Link Here
593
    datetime_undef_if_invalid => 1,
599
    datetime_undef_if_invalid => 1,
594
    is_nullable => 1,
600
    is_nullable => 1,
595
  },
601
  },
602
  "autorenewal",
603
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
596
);
604
);
597
605
598
=head1 PRIMARY KEY
606
=head1 PRIMARY KEY
Lines 610-617 __PACKAGE__->add_columns( Link Here
610
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
618
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
611
619
612
620
613
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-07-22 16:54:42
621
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-24 20:50:45
614
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jkZUTN+mGIdp8ySV0BYNTw
622
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7WfMeXobnCTp98TlYjtWLg
615
623
616
sub koha_object_class {
624
sub koha_object_class {
617
    'Koha::Patron::Modification';
625
    'Koha::Patron::Modification';
(-)a/Koha/Schema/Result/Deletedborrower.pm (-5 / +12 lines)
Lines 422-428 __PACKAGE__->table("deletedborrowers"); Link Here
422
422
423
  data_type: 'timestamp'
423
  data_type: 'timestamp'
424
  datetime_undef_if_invalid: 1
424
  datetime_undef_if_invalid: 1
425
  default_value: current_timestamp
425
  default_value: 'current_timestamp()'
426
  is_nullable: 0
426
  is_nullable: 0
427
427
428
=head2 lastseen
428
=head2 lastseen
Lines 455-460 __PACKAGE__->table("deletedborrowers"); Link Here
455
  default_value: 0
455
  default_value: 0
456
  is_nullable: 0
456
  is_nullable: 0
457
457
458
=head2 autorenewal
459
460
  data_type: 'tinyint'
461
  default_value: 1
462
  is_nullable: 0
463
458
=cut
464
=cut
459
465
460
__PACKAGE__->add_columns(
466
__PACKAGE__->add_columns(
Lines 625-631 __PACKAGE__->add_columns( Link Here
625
  {
631
  {
626
    data_type => "timestamp",
632
    data_type => "timestamp",
627
    datetime_undef_if_invalid => 1,
633
    datetime_undef_if_invalid => 1,
628
    default_value => \"current_timestamp",
634
    default_value => "current_timestamp()",
629
    is_nullable => 0,
635
    is_nullable => 0,
630
  },
636
  },
631
  "lastseen",
637
  "lastseen",
Lines 647-657 __PACKAGE__->add_columns( Link Here
647
  { data_type => "mediumtext", is_nullable => 1 },
653
  { data_type => "mediumtext", is_nullable => 1 },
648
  "anonymized",
654
  "anonymized",
649
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
655
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
656
  "autorenewal",
657
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
650
);
658
);
651
659
652
660
653
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-05-22 04:33:29
661
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-23 17:37:01
654
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zK1jC6Wawwj8B2ch9KFByw
662
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7DGOgltcqZKLv6u1BOnouw
655
663
656
sub koha_objects_class {
664
sub koha_objects_class {
657
    'Koha::Old::Patrons';
665
    'Koha::Old::Patrons';
658
- 

Return to bug 24476