From 608d55685d920851c25523c2418b249811dbf0b7 Mon Sep 17 00:00:00 2001
From: ’zhaoyh6‘ <zhaoyh6@asiainfo.com>
Date: Thu, 10 Mar 2022 17:22:54 +0800
Subject: feat:Create an entry for the unified intent instance, save the
 instance information to AAI, and add test code.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Issue-ID: REQ-1075
Signed-off-by: ’zhaoyh6‘ <zhaoyh6@asiainfo.com>
Change-Id: Iae5d246441d06b8ba30cdde5b14ae2202d46b85a
---
 .../main/assembly/resources/dbscripts/postgres/uui_create_table.sql  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql')

diff --git a/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql b/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql
index 6a3cf87c..d7201f51 100644
--- a/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql
+++ b/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql
@@ -170,7 +170,7 @@ DROP TABLE IF EXISTS ccvpn_instance;
 CREATE TABLE ccvpn_instance
 (
     id                          serial not null
-        constraint intent_instance_pk
+        constraint ccvpn_instance_pk
             primary key,
     instance_id                 varchar(16),
     job_id                      varchar(36),
@@ -182,7 +182,8 @@ CREATE TABLE ccvpn_instance
     access_point_one_name       varchar(255),
     access_point_one_band_width integer,
     line_num                    varchar(64),
-    delete_state                integer default 0
+    delete_state                integer default 0,
+    protect_status              integer default 0
 );
 
 -- ----------------------------
-- 
cgit 1.2.3-korg

