mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-09 00:12:58 +02:00
Merge pull request #3268 from murrant/config-name-unique-index
Set config_name column in config table as a unique index
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE tmp_table LIKE config;
|
||||
ALTER IGNORE TABLE tmp_table ADD UNIQUE INDEX uniqueindex_configname (config_name);
|
||||
INSERT IGNORE INTO tmp_table SELECT * FROM config;
|
||||
DROP TABLE config;
|
||||
RENAME TABLE tmp_table TO config;
|
||||
Reference in New Issue
Block a user