summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/resources
diff options
context:
space:
mode:
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>2020-12-10 10:49:59 +0200
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>2020-12-14 08:23:13 +0000
commit4ab9d0edb5bc0c5251175078a4b8933a29e73744 (patch)
treeccf342787a59af944708edcc9e5541c71fc85f41 /cps-ri/src/main/resources
parente182a6b6cb4a87b4f461adf83fe60a65948fc230 (diff)
Yang resource name persistence
Issue-ID: CPS-125 Change-Id: I5ee2e893dd7c30abe86287150e8bef62966dd909 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-ri/src/main/resources')
-rwxr-xr-xcps-ri/src/main/resources/schema.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-ri/src/main/resources/schema.sql b/cps-ri/src/main/resources/schema.sql
index d47f261add..2dce470ae1 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 SCHEMA_SET
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)
);