Commit 841e2055 by dragonfi

pep8 migrations

parent bb742269
...@@ -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'},
......
...@@ -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
...@@ -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
...@@ -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'},
......
...@@ -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
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