Adjust primary key constraints on certs db 74/85974/3
authorsangwan.kwon <sangwan.kwon@samsung.com>
Tue, 30 Aug 2016 04:20:49 +0000 (13:20 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Tue, 30 Aug 2016 06:17:41 +0000 (15:17 +0900)
* ssl's gname attribute should be unique.

Change-Id: I57995417f4c3fec73ed85c791dd94b569ab43eb4
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
etc/cert_svc_store_db.sql

index 1810c3c..958351d 100644 (file)
@@ -1,10 +1,9 @@
-
 PRAGMA foreign_keys = ON;
 
 BEGIN TRANSACTION;
 
 CREATE TABLE ssl (
-    gname               TEXT not null,
+    gname               TEXT PRIMARY KEY not null,
     certificate         TEXT not null,
     file_hash           TEXT not null,
     subject_hash        TEXT not null,
@@ -44,4 +43,3 @@ CREATE TABLE disabled_certs (
     certificate         TEXT not null);
 
 COMMIT;
-