Files
librenms-librenms/sql-schema/267.sql
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
247 B
SQL
Raw Normal View History

2018-09-11 07:51:35 -05:00
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;