mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
6 lines
247 B
MySQL
6 lines
247 B
MySQL
|
ALTER TABLE users ADD auth_type varchar(32) NULL after user_id;
|
||
|
ALTER TABLE users ADD auth_id int NULL after auth_type;
|
||
|
DROP INDEX username ON users;
|
||
|
CREATE UNIQUE INDEX username ON users (auth_type, username);
|
||
|
UPDATE users SET auth_id = user_id;
|