From 7cf2fac177f1f92daac87c14ff683f3bf38fb68d Mon Sep 17 00:00:00 2001 From: maopengzhang Date: Tue, 10 Oct 2017 20:09:28 +0800 Subject: [PATCH] Add global-customer-id and service-type parameter Add global-customer-id and service-type parameter in the model and database Change-Id: I8f81e552fac5f35655c9a64c7ad538aa01190ba6 Issue-ID: VFC-33 Signed-off-by: maopengzhang --- lcm/pub/database/models.py | 2 ++ resources/dbscripts/mysql/vfc-nfvo-lcm-createobj.sql | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lcm/pub/database/models.py b/lcm/pub/database/models.py index 35de4e44..306cc510 100644 --- a/lcm/pub/database/models.py +++ b/lcm/pub/database/models.py @@ -46,6 +46,8 @@ class NSInstModel(models.Model): scale_params = models.TextField(db_column='SCALEPARAMS', max_length=2000, null=True, blank=True) create_time = models.CharField(db_column='CREATETIME', max_length=200, null=True, blank=True) lastuptime = models.CharField(db_column='LASTUPTIME', max_length=200, null=True, blank=True) + global_customer_id = models.CharField(db_column='GLOBALCUSTOMERID', max_length=50, null=True, blank=True) + service_type = models.CharField(db_column='SERVICETYPE', max_length=50, null=True, blank=True) class NfPackageModel(models.Model): diff --git a/resources/dbscripts/mysql/vfc-nfvo-lcm-createobj.sql b/resources/dbscripts/mysql/vfc-nfvo-lcm-createobj.sql index b2588f05..79c48509 100644 --- a/resources/dbscripts/mysql/vfc-nfvo-lcm-createobj.sql +++ b/resources/dbscripts/mysql/vfc-nfvo-lcm-createobj.sql @@ -143,7 +143,9 @@ CREATE TABLE NFVO_NSINST ( `INPUTPARAMS` longtext NULL, `SCALEPARAMS` longtext NULL, `CREATETIME` varchar(200) NULL, - `LASTUPTIME` varchar(200) NULL + `LASTUPTIME` varchar(200) NULL, + `GLOBALCUSTOMERID` varchar(50) NULL, + `SERVICETYPE` varchar(50) NULL ); DROP TABLE IF EXISTS NFVO_PORTINST; -- 2.16.6