Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eab17f86
authored
Feb 19, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix migration file
parent
d3e55429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
circle/vm/migrations/0017_auto__add_field_instance_system__add_field_instancetemplate_owner.py
+0
-8
No files found.
circle/vm/migrations/0017_auto__add_field_instance_system__add_field_instancetemplate_owner.py
View file @
eab17f86
...
...
@@ -13,19 +13,11 @@ class Migration(SchemaMigration):
self
.
gf
(
'django.db.models.fields.TextField'
)(
default
=
''
,
blank
=
True
),
keep_default
=
False
)
# Adding field 'InstanceTemplate.owner'
db
.
add_column
(
u'vm_instancetemplate'
,
'owner'
,
self
.
gf
(
'django.db.models.fields.related.ForeignKey'
)(
default
=
0
,
to
=
orm
[
'auth.User'
]),
keep_default
=
False
)
def
backwards
(
self
,
orm
):
# Deleting field 'Instance.system'
db
.
delete_column
(
u'vm_instance'
,
'system'
)
# Deleting field 'InstanceTemplate.owner'
db
.
delete_column
(
u'vm_instancetemplate'
,
'owner_id'
)
models
=
{
u'acl.level'
:
{
...
...
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