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

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 1151-1156 __PACKAGE__->has_many( Link Here
1151
  { cascade_copy => 0, cascade_delete => 0 },
1151
  { cascade_copy => 0, cascade_delete => 0 },
1152
);
1152
);
1153
1153
1154
=head2 borrower_password_histories
1155
1156
Type: has_many
1157
1158
Related object: L<Koha::Schema::Result::BorrowerPasswordHistory>
1159
1160
=cut
1161
1162
__PACKAGE__->has_many(
1163
  "borrower_password_histories",
1164
  "Koha::Schema::Result::BorrowerPasswordHistory",
1165
  { "foreign.borrowernumber" => "self.borrowernumber" },
1166
  { cascade_copy => 0, cascade_delete => 0 },
1167
);
1168
1154
=head2 borrower_relationships_guarantees
1169
=head2 borrower_relationships_guarantees
1155
1170
1156
Type: has_many
1171
Type: has_many
Lines 2197-2204 Composing rels: L</user_permissions> -> permission Link Here
2197
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2212
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2198
2213
2199
2214
2200
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31
2215
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-17 09:14:33
2201
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XFOe2X4k2DUziaNS5pWd/Q
2216
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RQvOJOjtD9E4Q6QEkLWlCA
2202
2217
2203
__PACKAGE__->belongs_to(
2218
__PACKAGE__->belongs_to(
2204
  "library",
2219
  "library",
(-)a/Koha/Schema/Result/BorrowerPasswordHistory.pm (+104 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::BorrowerPasswordHistory;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::BorrowerPasswordHistory
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<borrower_password_history>
19
20
=cut
21
22
__PACKAGE__->table("borrower_password_history");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 borrowernumber
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 password
39
40
  data_type: 'varchar'
41
  is_nullable: 0
42
  size: 128
43
44
=head2 created_on
45
46
  data_type: 'timestamp'
47
  datetime_undef_if_invalid: 1
48
  default_value: current_timestamp
49
  is_nullable: 0
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "id",
55
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
56
  "borrowernumber",
57
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
58
  "password",
59
  { data_type => "varchar", is_nullable => 0, size => 128 },
60
  "created_on",
61
  {
62
    data_type => "timestamp",
63
    datetime_undef_if_invalid => 1,
64
    default_value => \"current_timestamp",
65
    is_nullable => 0,
66
  },
67
);
68
69
=head1 PRIMARY KEY
70
71
=over 4
72
73
=item * L</id>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->set_primary_key("id");
80
81
=head1 RELATIONS
82
83
=head2 borrowernumber
84
85
Type: belongs_to
86
87
Related object: L<Koha::Schema::Result::Borrower>
88
89
=cut
90
91
__PACKAGE__->belongs_to(
92
  "borrowernumber",
93
  "Koha::Schema::Result::Borrower",
94
  { borrowernumber => "borrowernumber" },
95
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96
);
97
98
99
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-17 09:14:33
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/qbG6KZnnD+JxaiXpTkdgg
101
102
103
# You can replace this text with custom code or comments, and it will be preserved on regeneration
104
1;
(-)a/Koha/Schema/Result/Category.pm (-3 / +11 lines)
Lines 173-178 if patrons of this category can do the password reset flow, Link Here
173
173
174
if patrons of this category can change their passwords in the OAPC
174
if patrons of this category can change their passwords in the OAPC
175
175
176
=head2 password_history_count
177
178
  data_type: 'smallint'
179
  is_nullable: 1
180
181
Number of previous passwords to check against when changing password for this patron type
182
176
=head2 min_password_length
183
=head2 min_password_length
177
184
178
  data_type: 'smallint'
185
  data_type: 'smallint'
Lines 287-292 __PACKAGE__->add_columns( Link Here
287
  { data_type => "tinyint", is_nullable => 1 },
294
  { data_type => "tinyint", is_nullable => 1 },
288
  "change_password",
295
  "change_password",
289
  { data_type => "tinyint", is_nullable => 1 },
296
  { data_type => "tinyint", is_nullable => 1 },
297
  "password_history_count",
298
  { data_type => "smallint", is_nullable => 1 },
290
  "min_password_length",
299
  "min_password_length",
291
  { data_type => "smallint", is_nullable => 1 },
300
  { data_type => "smallint", is_nullable => 1 },
292
  "require_strong_password",
301
  "require_strong_password",
Lines 410-417 __PACKAGE__->has_many( Link Here
410
);
419
);
411
420
412
421
413
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31
422
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-17 09:14:33
414
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ADt+iDjteg9Jb81L2FMIvg
423
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SRkD2XmAHHpuJFnrftAXyA
415
424
416
# You can replace this text with custom code or comments, and it will be preserved on regeneration
425
# You can replace this text with custom code or comments, and it will be preserved on regeneration
417
426
418
- 

Return to bug 40824