Ajout champs unique sur le nom des settings

This commit is contained in:
Pierre-Lin Bonnemaison 2015-09-23 15:55:31 +02:00
parent f3e62db6cd
commit f31c631eba
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ CREATE TABLE IF NOT EXISTS settings
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(20) NOT NULL,
value VARCHAR(1000) NOT NULL,
PRIMARY KEY (id)
PRIMARY KEY (id),
UNIQUE (name)
);
CREATE TABLE IF NOT EXISTS receiveds