commit | 4ab9d0edb5bc0c5251175078a4b8933a29e73744 | [log] [tgz] |
---|---|---|
author | Ruslan Kashapov <ruslan.kashapov@pantheon.tech> | Thu Dec 10 10:49:59 2020 +0200 |
committer | Claudio David Gasparini <claudio.gasparini@pantheon.tech> | Mon Dec 14 08:23:13 2020 +0000 |
tree | ccf342787a59af944708edcc9e5541c71fc85f41 | |
parent | e182a6b6cb4a87b4f461adf83fe60a65948fc230 [diff] [blame] |
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) );