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
9411bce4
Commit
9411bce4
authored
Nov 19, 2013
by
Christos Stavrakakis
Browse files
cyclades: Update firewall_profile field to None
Migration value of 'firewall_profile' attribute from '' to None.
parent
ce0484b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/db/migrations/0085_nic_build_state.py
View file @
9411bce4
...
...
@@ -10,10 +10,12 @@ class Migration(DataMigration):
"Write your forwards methods here."
# Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
orm
.
NetworkInterface
.
objects
.
filter
(
state
=
"BUILDING"
).
update
(
state
=
"BUILD"
)
orm
.
NetworkInterface
.
objects
.
filter
(
firewall_profile
=
""
).
update
(
firewall_profile
=
None
)
def
backwards
(
self
,
orm
):
"Write your backwards methods here."
orm
.
NetworkInterface
.
objects
.
filter
(
state
=
"BUILD"
).
update
(
state
=
"BUILDING"
)
orm
.
NetworkInterface
.
objects
.
filter
(
firewall_profile
=
None
).
update
(
firewall_profile
=
""
)
models
=
{
'db.backend'
:
{
...
...
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