Bug 12446: (QA follow-up) Minor kohastructure.sql fix

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2022-06-23 12:14:33 -03:00
parent d1fbd8b3c6
commit 9d6d1cbd18
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
3 changed files with 8 additions and 5 deletions

View file

@ -168,6 +168,8 @@ produce a warning for this patron category if this item has previously been chec
default_value: 0
is_nullable: 0
if patrons of this category can be guarantees
=head2 reset_password
data_type: 'tinyint'
@ -361,8 +363,8 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-23 14:48:14
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:onduD3AbdO0w18tOKuTLzA
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-23 15:17:56
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5gVAZYJ4TW6H2DjdmBXkBQ
__PACKAGE__->add_columns(
'+exclude_from_local_holds_priority' => { is_boolean => 1 },

View file

@ -10,7 +10,8 @@ return {
unless ( column_exists( 'categories', 'canbeguarantee' ) ) {
$dbh->do(q{
ALTER TABLE categories
ADD COLUMN `canbeguarantee` tinyint(1) NOT NULL default '0' AFTER `checkprevcheckout`
ADD COLUMN `canbeguarantee` tinyint(1) NOT NULL default 0 COMMENT 'if patrons of this category can be guarantees'
AFTER `checkprevcheckout`
});
}

View file

@ -1664,8 +1664,8 @@ CREATE TABLE `categories` (
`BlockExpiredPatronOpacActions` tinyint(1) NOT NULL DEFAULT -1 COMMENT 'wheither or not a patron of this category can renew books or place holds once their card has expired. 0 means they can, 1 means they cannot, -1 means use syspref BlockExpiredPatronOpacActions',
`default_privacy` enum('default','never','forever') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default' COMMENT 'Default privacy setting for this patron category',
`checkprevcheckout` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'inherit' COMMENT 'produce a warning for this patron category if this item has previously been checked out to this patron if ''yes'', not if ''no'', defer to syspref setting if ''inherit''.',
`canbeguarantee` tinyint(1) NOT NULL default '0',
`reset_password` tinyint(1) DEFAULT NULL COMMENT 'if patrons of this category can do the password reset flow,',
`canbeguarantee` tinyint(1) NOT NULL default 0 COMMENT 'if patrons of this category can be guarantees',
`reset_password` tinyint(1) DEFAULT NULL COMMENT 'if patrons of this category can do the password reset flow,',
`change_password` tinyint(1) DEFAULT NULL COMMENT 'if patrons of this category can change their passwords in the OAPC',
`min_password_length` smallint(6) DEFAULT NULL COMMENT 'set minimum password length for patrons in this category',
`require_strong_password` tinyint(1) DEFAULT NULL COMMENT 'set required password strength for patrons in this category',