mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-29 00:44:08 +01:00
Adding unique constraint on update
This commit is contained in:
parent
77fa9a926d
commit
5c9f0da3aa
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ if(isset($input->action) && $input->action == "requestUpgrade") {
|
|||
RENAME TABLE user TO users;
|
||||
ALTER TABLE permissions CHANGE user userid INT(11);
|
||||
|
||||
ALTER TABLE users ADD CONSTRAINT UNIQUE KEY user_name_index (name);
|
||||
|
||||
UPDATE options SET value=4 WHERE name='schema_version';
|
||||
";
|
||||
$sql["pgsql"] = "UPDATE options SET value=4 WHERE name='schema_version';";
|
||||
|
|
Loading…
Add table
Reference in a new issue