Bug 28786: DBIC schema changes

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-03-24 14:25:43 +01:00 committed by Fridolin Somers
parent e96f95edf1
commit c09e312913
2 changed files with 54 additions and 4 deletions

View file

@ -386,6 +386,22 @@ patron/borrower's gender
patron/borrower's Bcrypt encrypted password
=head2 secret
data_type: 'mediumtext'
is_nullable: 1
Secret for 2FA
=head2 auth_method
data_type: 'enum'
default_value: 'password'
extra: {list => ["password","two-factor"]}
is_nullable: 0
Authentication method
=head2 flags
data_type: 'integer'
@ -720,6 +736,15 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 1 },
"password",
{ data_type => "varchar", is_nullable => 1, size => 60 },
"secret",
{ data_type => "mediumtext", is_nullable => 1 },
"auth_method",
{
data_type => "enum",
default_value => "password",
extra => { list => ["password", "two-factor"] },
is_nullable => 0,
},
"flags",
{ data_type => "integer", is_nullable => 1 },
"userid",
@ -1930,8 +1955,8 @@ Composing rels: L</user_permissions> -> permission
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-15 06:51:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ozDOfb67H7/GHLI0o4DdyA
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-24 10:20:07
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:srYT5wjg7Jhy5CpmDjWv/g
__PACKAGE__->has_many(
"extended_attributes",

View file

@ -384,6 +384,22 @@ patron/borrower's gender
patron/borrower's encrypted password
=head2 secret
data_type: 'mediumtext'
is_nullable: 1
Secret for 2FA
=head2 auth_method
data_type: 'enum'
default_value: 'password'
extra: {list => ["password","two-factor"]}
is_nullable: 0
Authentication method
=head2 flags
data_type: 'integer'
@ -705,6 +721,15 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 1 },
"password",
{ data_type => "varchar", is_nullable => 1, size => 60 },
"secret",
{ data_type => "mediumtext", is_nullable => 1 },
"auth_method",
{
data_type => "enum",
default_value => "password",
extra => { list => ["password", "two-factor"] },
is_nullable => 0,
},
"flags",
{ data_type => "integer", is_nullable => 1 },
"userid",
@ -785,8 +810,8 @@ __PACKAGE__->add_columns(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-07-12 13:40:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9q8LmKrfO6bAAFaJ4Z3Jrg
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-24 10:20:07
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JvVxPJOrg5reWvl+gg9Q2A
__PACKAGE__->add_columns(
'+anonymized' => { is_boolean => 1 },