X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_policy_module%2Fcore%2Fdatabase.py;fp=osm_policy_module%2Fcore%2Fdatabase.py;h=8ad19f2f4ecbe928fad165a921e1cceaa368be4a;hb=4c5541f020bbc56e9ae1a326b0d33e673dcd5f0b;hp=5d927d0d01910c162742fb87963f024886dd97c6;hpb=d664c1ad10de8e76e47704964ad8e47b33cf24da;p=osm%2FPOL.git diff --git a/osm_policy_module/core/database.py b/osm_policy_module/core/database.py index 5d927d0..8ad19f2 100644 --- a/osm_policy_module/core/database.py +++ b/osm_policy_module/core/database.py @@ -44,6 +44,7 @@ class BaseModel(Model): class ScalingGroup(BaseModel): nsr_id = CharField() + vnf_member_index = IntegerField() name = CharField() content = TextField() @@ -51,7 +52,7 @@ class ScalingGroup(BaseModel): class ScalingPolicy(BaseModel): name = CharField() cooldown_time = IntegerField() - last_scale = DateTimeField(default=datetime.datetime.min) + last_scale = DateTimeField(default=datetime.datetime.now) scaling_group = ForeignKeyField(ScalingGroup, related_name='scaling_policies')