mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 17:07:26 +01:00
11 lines
380 B
SQL
11 lines
380 B
SQL
CREATE TABLE IF NOT EXISTS configuration_new (
|
|
username varchar(255),
|
|
confkey varchar(255),
|
|
value varchar(255),
|
|
PRIMARY KEY (username, confkey),
|
|
FOREIGN KEY (username) REFERENCES user (username) ON DELETE CASCADE ON UPDATE NO ACTION);
|
|
|
|
INSERT INTO configuration_new SELECT * FROM configuration;
|
|
DROP TABLE configuration;
|
|
ALTER TABLE configuration_new RENAME TO configuration;
|