Commit ad1b5dc3 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Fix bugs in migration files

parent f6ba240a
......@@ -25,7 +25,7 @@ class Migration(DataMigration):
network.type = 'PUBLIC_ROUTED'
else:
network.dhcp = False
network.type = 'PRIVATE_VLAN'
network.type = 'PRIVATE_PHYSICAL_VLAN'
bridge = BridgePool.get_available()
network.netlink = bridge.value
......
......@@ -35,10 +35,10 @@ class Migration(SchemaMigration):
db.rename_column('db_network', 'link', 'netlink')
# Add column 'Network.link_id'
db.add_column('db_network', 'link_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['db.NetworkLink']))
db.add_column('db_network', 'link', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['db.NetworkLink']))
# Adding index on 'Network', fields ['link']
db.create_index('db_network', ['link_id'])
# db.create_index('db_network', ['link_id'])
models = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment