From f31c631eba234097b1b7fa41ad2575511b36c170 Mon Sep 17 00:00:00 2001 From: Pierre-Lin Bonnemaison Date: Wed, 23 Sep 2015 15:55:31 +0200 Subject: [PATCH] Ajout champs unique sur le nom des settings --- createDatabase.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/createDatabase.sql b/createDatabase.sql index 964d872..f4e8c61 100755 --- a/createDatabase.sql +++ b/createDatabase.sql @@ -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