Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit c345ffc1 authored by Gary Allan's avatar Gary Allan
Browse files

Bugfix: Database upgrade errors. Fixes #3563

Fix schema update where usersAuthMethod `type` is set to an empty SET().
parent f8c651de
Branches
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@ $upgrade_queries["1.5.32"][] = "UPDATE `settings` set `dbversion` = '32';";
// Fix SET/ENUM usage in usersAuthMethod
// Allow for longer json params (e.g. certificates in SAML2)
$upgrade_queries["1.5.33"] = [];
$upgrade_queries["1.5.33"][] = "UPDATE `usersAuthMethod` SET `type` = 'local' WHERE id = 1;"; // Issue #3563
$upgrade_queries["1.5.33"][] = "UPDATE `usersAuthMethod` SET `type` = 'http' WHERE id = 2;"; // Issue #3563
$upgrade_queries["1.5.33"][] = "ALTER TABLE `usersAuthMethod` CHANGE `type` `type` ENUM('local','http','AD','LDAP','NetIQ','Radius','SAML2') NOT NULL DEFAULT 'local';";
$upgrade_queries["1.5.33"][] = "ALTER TABLE `usersAuthMethod` CHANGE `params` `params` text DEFAULT NULL;";
$upgrade_queries["1.5.33"][] = "ALTER TABLE `usersAuthMethod` CHANGE `protected` `protected` ENUM('Yes','No') NOT NULL DEFAULT 'Yes';";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment