3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding field 'Deleted.category'
12 db.add_column('api_deleted', 'category', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=64, null=True, blank=True), keep_default=False)
15 def backwards(self, orm):
17 # Deleting field 'Deleted.category'
18 db.delete_column('api_deleted', 'category')
23 'Meta': {'unique_together': "(('content_type', 'object_id'),)", 'object_name': 'Deleted'},
24 'category': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'null': 'True', 'blank': 'True'}),
25 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
26 'created_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
27 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
28 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29 'object_id': ('django.db.models.fields.IntegerField', [], {})
31 'contenttypes.contenttype': {
32 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
33 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
34 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
36 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
40 complete_apps = ['api']