diff options
author | maopengzhang <zhang.maopeng1@zte.com.cn> | 2017-10-10 20:09:28 +0800 |
---|---|---|
committer | yunlong ying <ying.yunlong@zte.com.cn> | 2017-10-11 03:22:14 +0000 |
commit | 7cf2fac177f1f92daac87c14ff683f3bf38fb68d (patch) | |
tree | 8e60d2e462ff75e50d1a9dbfc6ceaee470cb5a81 | |
parent | d8b854adbb553d1462f87e861cb5bb715e6a3d1d (diff) |
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 <zhang.maopeng1@zte.com.cn>
-rw-r--r-- | lcm/pub/database/models.py | 2 | ||||
-rw-r--r-- | resources/dbscripts/mysql/vfc-nfvo-lcm-createobj.sql | 4 |
2 files changed, 5 insertions, 1 deletions
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; |