88class 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+
0 commit comments