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

(-)a/Koha/Schema/Result/Borrower.pm (-6 / +17 lines)
Lines 647-652 flag for allowing auto-renewal Link Here
647
647
648
useful for reporting purposes
648
useful for reporting purposes
649
649
650
=head2 needs_password_reset
651
652
  data_type: 'tinyint'
653
  default_value: 0
654
  is_nullable: 0
655
656
tracks if a patron needs to reset their password after account creation
657
650
=cut
658
=cut
651
659
652
__PACKAGE__->add_columns(
660
__PACKAGE__->add_columns(
Lines 850-855 __PACKAGE__->add_columns( Link Here
850
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
858
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
851
  "primary_contact_method",
859
  "primary_contact_method",
852
  { data_type => "varchar", is_nullable => 1, size => 45 },
860
  { data_type => "varchar", is_nullable => 1, size => 45 },
861
  "needs_password_reset",
862
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
853
);
863
);
854
864
855
=head1 PRIMARY KEY
865
=head1 PRIMARY KEY
Lines 2103-2110 Composing rels: L</user_permissions> -> permission Link Here
2103
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2113
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2104
2114
2105
2115
2106
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-06 15:46:57
2116
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-17 23:22:44
2107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f6omVb7EtiysdaWTX3IRzg
2117
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iUiJVr2tu8DvzM2zmKEeSA
2108
2118
2109
__PACKAGE__->has_many(
2119
__PACKAGE__->has_many(
2110
  "restrictions",
2120
  "restrictions",
Lines 2121-2131 __PACKAGE__->has_many( Link Here
2121
);
2131
);
2122
2132
2123
__PACKAGE__->add_columns(
2133
__PACKAGE__->add_columns(
2124
    '+anonymized'    => { is_boolean => 1 },
2134
    '+anonymized'              => { is_boolean => 1 },
2125
    '+lost'          => { is_boolean => 1 },
2135
    '+lost'                    => { is_boolean => 1 },
2126
    '+gonenoaddress' => { is_boolean => 1 },
2136
    '+gonenoaddress'           => { is_boolean => 1 },
2127
    '+privacy_guarantor_fines' => { is_boolean => 1 },
2137
    '+privacy_guarantor_fines' => { is_boolean => 1 },
2128
    '+autorenew_checkouts' => { is_boolean => 1 }
2138
    '+autorenew_checkouts'     => { is_boolean => 1 },
2139
    '+needs_password_reset'    => { is_boolean => 1 }
2129
);
2140
);
2130
2141
2131
sub koha_objects_class {
2142
sub koha_objects_class {
(-)a/Koha/Schema/Result/BorrowerModification.pm (-2 / +15 lines)
Lines 443-448 data processing consent Link Here
443
443
444
useful for reporting purposes
444
useful for reporting purposes
445
445
446
=head2 needs_password_reset
447
448
  data_type: 'tinyint'
449
  default_value: 0
450
  is_nullable: 0
451
452
tracks if a patron needs to reset their password after account creation
453
446
=cut
454
=cut
447
455
448
__PACKAGE__->add_columns(
456
__PACKAGE__->add_columns(
Lines 621-626 __PACKAGE__->add_columns( Link Here
621
  },
629
  },
622
  "primary_contact_method",
630
  "primary_contact_method",
623
  { data_type => "varchar", is_nullable => 1, size => 45 },
631
  { data_type => "varchar", is_nullable => 1, size => 45 },
632
  "needs_password_reset",
633
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
624
);
634
);
625
635
626
=head1 PRIMARY KEY
636
=head1 PRIMARY KEY
Lines 638-645 __PACKAGE__->add_columns( Link Here
638
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
648
__PACKAGE__->set_primary_key("verification_token", "borrowernumber");
639
649
640
650
641
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-06 15:46:57
651
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-18 02:31:30
642
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TzG6Q5PymhBXCVxJi3C/sA
652
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AmzEOvpcBmijB4MFXJuTQg
653
__PACKAGE__->add_columns(
654
    '+needs_password_reset'        => { is_boolean => 1 }
655
);
643
656
644
sub koha_object_class {
657
sub koha_object_class {
645
    'Koha::Patron::Modification';
658
    'Koha::Patron::Modification';
(-)a/Koha/Schema/Result/Category.pm (-5 / +15 lines)
Lines 205-210 set required password strength for patrons in this category Link Here
205
205
206
Exclude patrons of this category from local holds priority
206
Exclude patrons of this category from local holds priority
207
207
208
=head2 force_password_reset_when_set_by_staff
209
210
  data_type: 'tinyint'
211
  is_nullable: 1
212
213
if patrons of this category are required to reset password after being created by a staff member
214
208
=cut
215
=cut
209
216
210
__PACKAGE__->add_columns(
217
__PACKAGE__->add_columns(
Lines 271-276 __PACKAGE__->add_columns( Link Here
271
  { data_type => "tinyint", is_nullable => 1 },
278
  { data_type => "tinyint", is_nullable => 1 },
272
  "exclude_from_local_holds_priority",
279
  "exclude_from_local_holds_priority",
273
  { data_type => "tinyint", is_nullable => 1 },
280
  { data_type => "tinyint", is_nullable => 1 },
281
  "force_password_reset_when_set_by_staff",
282
  { data_type => "tinyint", is_nullable => 1 },
274
);
283
);
275
284
276
=head1 PRIMARY KEY
285
=head1 PRIMARY KEY
Lines 378-385 __PACKAGE__->has_many( Link Here
378
);
387
);
379
388
380
389
381
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-08 17:35:26
390
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-17 17:29:41
382
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B89OgAY/KnJbQaHpu5Xdfg
391
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xCGHoTwf0eY1aTzNW9wf8w
383
392
384
sub koha_object_class {
393
sub koha_object_class {
385
    'Koha::Patron::Category';
394
    'Koha::Patron::Category';
Lines 389-397 sub koha_objects_class { Link Here
389
}
398
}
390
399
391
__PACKAGE__->add_columns(
400
__PACKAGE__->add_columns(
392
    '+can_be_guarantee'                  => { is_boolean => 1 },
401
    '+can_be_guarantee'                       => { is_boolean => 1 },
393
    '+exclude_from_local_holds_priority' => { is_boolean => 1 },
402
    '+exclude_from_local_holds_priority'      => { is_boolean => 1 },
394
    '+require_strong_password'           => { is_boolean => 1 },
403
    '+require_strong_password'                => { is_boolean => 1 },
404
    '+force_password_reset_when_set_by_staff' => { is_boolean => 1 },
395
);
405
);
396
406
397
1;
407
1;
(-)a/Koha/Schema/Result/Deletedborrower.pm (-4 / +14 lines)
Lines 644-649 flag for allowing auto-renewal Link Here
644
644
645
useful for reporting purposes
645
useful for reporting purposes
646
646
647
=head2 needs_password_reset
648
649
  data_type: 'tinyint'
650
  default_value: 0
651
  is_nullable: 0
652
653
tracks if a patron needs to reset their password after account creation
654
647
=cut
655
=cut
648
656
649
__PACKAGE__->add_columns(
657
__PACKAGE__->add_columns(
Lines 835-852 __PACKAGE__->add_columns( Link Here
835
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
843
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
836
  "primary_contact_method",
844
  "primary_contact_method",
837
  { data_type => "varchar", is_nullable => 1, size => 45 },
845
  { data_type => "varchar", is_nullable => 1, size => 45 },
846
  "needs_password_reset",
847
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
838
);
848
);
839
849
840
850
841
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-06 15:46:58
851
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-18 02:31:30
842
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dqGu9iDgO+u09l9X1G0NuA
852
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OGB0YGderUB7RAOQJenXvQ
843
853
844
__PACKAGE__->add_columns(
854
__PACKAGE__->add_columns(
845
    '+anonymized'    => { is_boolean => 1 },
855
    '+anonymized'    => { is_boolean => 1 },
846
    '+lost'          => { is_boolean => 1 },
856
    '+lost'          => { is_boolean => 1 },
847
    '+gonenoaddress' => { is_boolean => 1 },
857
    '+gonenoaddress' => { is_boolean => 1 },
848
    '+privacy_guarantor_fines' => { is_boolean => 1 },
858
    '+privacy_guarantor_fines' => { is_boolean => 1 },
849
    '+autorenew_checkouts' => { is_boolean => 1 }
859
    '+autorenew_checkouts' => { is_boolean => 1 },
860
    '+needs_password_reset'   => { is_boolean => 1 }
850
);
861
);
851
862
852
sub koha_objects_class {
863
sub koha_objects_class {
853
- 

Return to bug 33462