Yang resource name persistence

Issue-ID: CPS-125
Change-Id: I5ee2e893dd7c30abe86287150e8bef62966dd909
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
diff --git a/cps-ri/src/main/resources/schema.sql b/cps-ri/src/main/resources/schema.sql
index d47f261..2dce470 100755
--- a/cps-ri/src/main/resources/schema.sql
+++ b/cps-ri/src/main/resources/schema.sql
@@ -29,8 +29,9 @@
 CREATE TABLE IF NOT EXISTS YANG_RESOURCE

 (

     ID SERIAL PRIMARY KEY,

-    CHECKSUM TEXT NOT NULL,

+    NAME TEXT NOT NULL,

     CONTENT TEXT NOT NULL,

+    CHECKSUM TEXT NOT NULL,

     UNIQUE (CHECKSUM)

 );