projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 2113 fix: POL upgrade from v10.1.1 to v12.0.0 fails due to changes in databases
[osm/POL.git]
/
osm_policy_module
/
migrations
/
002_add_vnf_alarm.py
diff --git
a/osm_policy_module/migrations/002_add_vnf_alarm.py
b/osm_policy_module/migrations/002_add_vnf_alarm.py
index
ab31d5a
..
5aa3660
100644
(file)
--- a/
osm_policy_module/migrations/002_add_vnf_alarm.py
+++ b/
osm_policy_module/migrations/002_add_vnf_alarm.py
@@
-60,10
+60,6
@@
def migrate(migrator, database, fake=False, **kwargs):
nsr_id = pw.CharField(max_length=255)
vnf_member_index = pw.IntegerField()
vdu_name = pw.CharField(max_length=255)
nsr_id = pw.CharField(max_length=255)
vnf_member_index = pw.IntegerField()
vdu_name = pw.CharField(max_length=255)
- last_action = pw.CharField(max_length=255, default="insufficient-data")
- id_suffix = pw.IntegerField()
- ok_ack = pw.BooleanField(default=False)
- alarm_ack = pw.BooleanField(default=False)
class Meta:
table_name = "vnfalarm"
class Meta:
table_name = "vnfalarm"
@@
-89,5
+85,4
@@
def rollback(migrator, database, fake=False, **kwargs):
"""Write your rollback migrations here."""
migrator.remove_model("vnfalarm")
"""Write your rollback migrations here."""
migrator.remove_model("vnfalarm")
-
migrator.remove_model("alarmaction")
migrator.remove_model("alarmaction")