diff options
author | 2018-09-07 19:25:05 +0800 | |
---|---|---|
committer | 2018-09-07 19:26:25 +0800 | |
commit | 0e59e7fa47e111c89eca8f91da99ba7b53fae3a5 (patch) | |
tree | b38a4ea0c2eb7156ce2bdeb470d22aa76f59a135 | |
parent | 44ac6756720b934bf9e8bdcb2e46b7a0b7b38395 (diff) |
Refine DB model for OOF response
Refine DB model to put only one record for one vnf
Change-Id: I2966d63881f88185ef4cfce229222d5af8e951f0
Issue-ID: VFC-941
Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
-rw-r--r-- | lcm/pub/database/models.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lcm/pub/database/models.py b/lcm/pub/database/models.py index 7cbb0a60..a078c6a8 100644 --- a/lcm/pub/database/models.py +++ b/lcm/pub/database/models.py @@ -320,7 +320,6 @@ class OOFDataModel(models.Model): class Meta: db_table = 'NFVO_OOF_DATA' - id = models.CharField(db_column='ID', max_length=255, primary_key=True) request_id = models.CharField(db_column='REQUESTID', max_length=255) transaction_id = models.CharField(db_column='TRANSACTIONID', max_length=255) request_status = models.CharField(db_column='REQUESTSTATUS', max_length=50) @@ -329,6 +328,4 @@ class OOFDataModel(models.Model): vim_id = models.CharField(db_column='VIMID', max_length=255, null=True, blank=True) cloud_owner = models.CharField(db_column='CLOUDOWNER', max_length=100, null=True, blank=True) cloud_region_id = models.CharField(db_column='CLOUDREGIONID', max_length=255, null=True, blank=True) - vdu_name = models.CharField(db_column='VDUNAME', max_length=100, null=True, blank=True) - flavor_name = models.CharField(db_column='FLAVORNAME', max_length=100, null=True, blank=True) - directive = models.TextField(db_column='DIRECTIVE', max_length=65535, null=True, blank=True) + vdu_info = models.TextField(db_column='VDUINFO', max_length=65535, null=True, blank=True) |