Skip to content

Commit b4ff75e

Browse files
author
Gabriel Monroy
committed
fix(migration): squash migrations, add newline
1 parent cdbd9b9 commit b4ff75e

2 files changed

Lines changed: 3 additions & 159 deletions

File tree

controller/api/migrations/0010_auto__add_unique_container_type_num__add_field_build_sha__add_field_bu.py renamed to controller/api/migrations/0010_auto__add_field_build_sha__add_field_build_procfile__add_field_build_d.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
class Migration(SchemaMigration):
99

1010
def forwards(self, orm):
11-
# Adding unique constraint on 'Container', fields ['type', 'num']
12-
db.create_unique(u'api_container', ['type', 'num'])
13-
1411
# Adding field 'Build.sha'
1512
db.add_column(u'api_build', 'sha',
1613
self.gf('django.db.models.fields.CharField')(default='', max_length=40, blank=True),
@@ -28,9 +25,6 @@ def forwards(self, orm):
2825

2926

3027
def backwards(self, orm):
31-
# Removing unique constraint on 'Container', fields ['type', 'num']
32-
db.delete_unique(u'api_container', ['type', 'num'])
33-
3428
# Deleting field 'Build.sha'
3529
db.delete_column(u'api_build', 'sha')
3630

@@ -87,7 +81,7 @@ def backwards(self, orm):
8781
'values': ('json_field.fields.JSONField', [], {'default': "u'{}'", 'blank': 'True'})
8882
},
8983
u'api.container': {
90-
'Meta': {'ordering': "[u'created']", 'unique_together': "((u'type', u'num'),)", 'object_name': 'Container'},
84+
'Meta': {'ordering': "[u'created']", 'object_name': 'Container'},
9185
'app': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['api.App']"}),
9286
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
9387
'num': ('django.db.models.fields.PositiveIntegerField', [], {}),
@@ -172,4 +166,5 @@ def backwards(self, orm):
172166
}
173167
}
174168

175-
complete_apps = ['api']
169+
complete_apps = ['api']
170+

controller/api/migrations/0011_auto__del_unique_container_type_num.py

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)