Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
841e2055
Commit
841e2055
authored
Sep 20, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8 migrations
parent
bb742269
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
14 deletions
+3
-14
mentoring/migrations/0001_initial.py
+0
-2
mentoring/migrations/0002_auto__add_field_answer_course_id__chg_field_answer_student_id.py
+1
-4
mentoring/migrations/0003_auto__del_unique_answer_student_id_name__add_unique_answer_course_id_s.py
+1
-4
mentoring/migrations/0004_auto__add_lightchild__add_unique_lightchild_student_id_course_id_name.py
+0
-2
mentoring/migrations/0005_auto__chg_field_lightchild_name.py
+1
-2
No files found.
mentoring/migrations/0001_initial.py
View file @
841e2055
...
@@ -22,7 +22,6 @@ class Migration(SchemaMigration):
...
@@ -22,7 +22,6 @@ class Migration(SchemaMigration):
# Adding unique constraint on 'Answer', fields ['student_id', 'name']
# Adding unique constraint on 'Answer', fields ['student_id', 'name']
db
.
create_unique
(
'mentoring_answer'
,
[
'student_id'
,
'name'
])
db
.
create_unique
(
'mentoring_answer'
,
[
'student_id'
,
'name'
])
def
backwards
(
self
,
orm
):
def
backwards
(
self
,
orm
):
# Removing unique constraint on 'Answer', fields ['student_id', 'name']
# Removing unique constraint on 'Answer', fields ['student_id', 'name']
db
.
delete_unique
(
'mentoring_answer'
,
[
'student_id'
,
'name'
])
db
.
delete_unique
(
'mentoring_answer'
,
[
'student_id'
,
'name'
])
...
@@ -30,7 +29,6 @@ class Migration(SchemaMigration):
...
@@ -30,7 +29,6 @@ class Migration(SchemaMigration):
# Deleting model 'Answer'
# Deleting model 'Answer'
db
.
delete_table
(
'mentoring_answer'
)
db
.
delete_table
(
'mentoring_answer'
)
models
=
{
models
=
{
'mentoring.answer'
:
{
'mentoring.answer'
:
{
'Meta'
:
{
'unique_together'
:
"(('student_id', 'name'),)"
,
'object_name'
:
'Answer'
},
'Meta'
:
{
'unique_together'
:
"(('student_id', 'name'),)"
,
'object_name'
:
'Answer'
},
...
...
mentoring/migrations/0002_auto__add_field_answer_course_id__chg_field_answer_student_id.py
View file @
841e2055
...
@@ -13,7 +13,6 @@ class Migration(SchemaMigration):
...
@@ -13,7 +13,6 @@ class Migration(SchemaMigration):
self
.
gf
(
'django.db.models.fields.CharField'
)(
default
=
'default'
,
max_length
=
50
,
db_index
=
True
),
self
.
gf
(
'django.db.models.fields.CharField'
)(
default
=
'default'
,
max_length
=
50
,
db_index
=
True
),
keep_default
=
False
)
keep_default
=
False
)
# Changing field 'Answer.student_id'
# Changing field 'Answer.student_id'
db
.
alter_column
(
'mentoring_answer'
,
'student_id'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
32
))
db
.
alter_column
(
'mentoring_answer'
,
'student_id'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
32
))
...
@@ -21,7 +20,6 @@ class Migration(SchemaMigration):
...
@@ -21,7 +20,6 @@ class Migration(SchemaMigration):
# Deleting field 'Answer.course_id'
# Deleting field 'Answer.course_id'
db
.
delete_column
(
'mentoring_answer'
,
'course_id'
)
db
.
delete_column
(
'mentoring_answer'
,
'course_id'
)
# Changing field 'Answer.student_id'
# Changing field 'Answer.student_id'
db
.
alter_column
(
'mentoring_answer'
,
'student_id'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
20
))
db
.
alter_column
(
'mentoring_answer'
,
'student_id'
,
self
.
gf
(
'django.db.models.fields.CharField'
)(
max_length
=
20
))
...
@@ -38,4 +36,4 @@ class Migration(SchemaMigration):
...
@@ -38,4 +36,4 @@ class Migration(SchemaMigration):
}
}
}
}
complete_apps
=
[
'mentoring'
]
complete_apps
=
[
'mentoring'
]
\ No newline at end of file
mentoring/migrations/0003_auto__del_unique_answer_student_id_name__add_unique_answer_course_id_s.py
View file @
841e2055
...
@@ -14,7 +14,6 @@ class Migration(SchemaMigration):
...
@@ -14,7 +14,6 @@ class Migration(SchemaMigration):
# Adding unique constraint on 'Answer', fields ['course_id', 'student_id', 'name']
# Adding unique constraint on 'Answer', fields ['course_id', 'student_id', 'name']
db
.
create_unique
(
'mentoring_answer'
,
[
'course_id'
,
'student_id'
,
'name'
])
db
.
create_unique
(
'mentoring_answer'
,
[
'course_id'
,
'student_id'
,
'name'
])
def
backwards
(
self
,
orm
):
def
backwards
(
self
,
orm
):
# Removing unique constraint on 'Answer', fields ['course_id', 'student_id', 'name']
# Removing unique constraint on 'Answer', fields ['course_id', 'student_id', 'name']
db
.
delete_unique
(
'mentoring_answer'
,
[
'course_id'
,
'student_id'
,
'name'
])
db
.
delete_unique
(
'mentoring_answer'
,
[
'course_id'
,
'student_id'
,
'name'
])
...
@@ -22,7 +21,6 @@ class Migration(SchemaMigration):
...
@@ -22,7 +21,6 @@ class Migration(SchemaMigration):
# Adding unique constraint on 'Answer', fields ['student_id', 'name']
# Adding unique constraint on 'Answer', fields ['student_id', 'name']
db
.
create_unique
(
'mentoring_answer'
,
[
'student_id'
,
'name'
])
db
.
create_unique
(
'mentoring_answer'
,
[
'student_id'
,
'name'
])
models
=
{
models
=
{
'mentoring.answer'
:
{
'mentoring.answer'
:
{
'Meta'
:
{
'unique_together'
:
"(('student_id', 'course_id', 'name'),)"
,
'object_name'
:
'Answer'
},
'Meta'
:
{
'unique_together'
:
"(('student_id', 'course_id', 'name'),)"
,
'object_name'
:
'Answer'
},
...
@@ -36,4 +34,4 @@ class Migration(SchemaMigration):
...
@@ -36,4 +34,4 @@ class Migration(SchemaMigration):
}
}
}
}
complete_apps
=
[
'mentoring'
]
complete_apps
=
[
'mentoring'
]
\ No newline at end of file
mentoring/migrations/0004_auto__add_lightchild__add_unique_lightchild_student_id_course_id_name.py
View file @
841e2055
...
@@ -23,7 +23,6 @@ class Migration(SchemaMigration):
...
@@ -23,7 +23,6 @@ class Migration(SchemaMigration):
# Adding unique constraint on 'LightChild', fields ['student_id', 'course_id', 'name']
# Adding unique constraint on 'LightChild', fields ['student_id', 'course_id', 'name']
db
.
create_unique
(
'mentoring_lightchild'
,
[
'student_id'
,
'course_id'
,
'name'
])
db
.
create_unique
(
'mentoring_lightchild'
,
[
'student_id'
,
'course_id'
,
'name'
])
def
backwards
(
self
,
orm
):
def
backwards
(
self
,
orm
):
# Removing unique constraint on 'LightChild', fields ['student_id', 'course_id', 'name']
# Removing unique constraint on 'LightChild', fields ['student_id', 'course_id', 'name']
db
.
delete_unique
(
'mentoring_lightchild'
,
[
'student_id'
,
'course_id'
,
'name'
])
db
.
delete_unique
(
'mentoring_lightchild'
,
[
'student_id'
,
'course_id'
,
'name'
])
...
@@ -31,7 +30,6 @@ class Migration(SchemaMigration):
...
@@ -31,7 +30,6 @@ class Migration(SchemaMigration):
# Deleting model 'LightChild'
# Deleting model 'LightChild'
db
.
delete_table
(
'mentoring_lightchild'
)
db
.
delete_table
(
'mentoring_lightchild'
)
models
=
{
models
=
{
'mentoring.answer'
:
{
'mentoring.answer'
:
{
'Meta'
:
{
'unique_together'
:
"(('student_id', 'course_id', 'name'),)"
,
'object_name'
:
'Answer'
},
'Meta'
:
{
'unique_together'
:
"(('student_id', 'course_id', 'name'),)"
,
'object_name'
:
'Answer'
},
...
...
mentoring/migrations/0005_auto__chg_field_lightchild_name.py
View file @
841e2055
...
@@ -40,4 +40,4 @@ class Migration(SchemaMigration):
...
@@ -40,4 +40,4 @@ class Migration(SchemaMigration):
}
}
}
}
complete_apps
=
[
'mentoring'
]
complete_apps
=
[
'mentoring'
]
\ No newline at end of file
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