Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
ad1b5dc3
Commit
ad1b5dc3
authored
Jul 23, 2012
by
Christos Stavrakakis
Browse files
Fix bugs in migration files
parent
f6ba240a
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/db/migrations/0037_network_migration.py
View file @
ad1b5dc3
...
...
@@ -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
...
...
snf-cyclades-app/synnefo/db/migrations/0038_auto__del_networklink__del_field_network_netlink__chg_field_network_li.py
View file @
ad1b5dc3
...
...
@@ -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
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment