1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
11 # Adding field 'Deleted.slug'
12 db.add_column('api_deleted', 'slug',
13 self.gf('django.db.models.fields.SlugField')(default='', max_length=120, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Deleted.slug'
19 db.delete_column('api_deleted', 'slug')
24 'Meta': {'unique_together': "(('content_type', 'object_id'),)", 'object_name': 'Deleted'},
25 'category': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'null': 'True', 'blank': 'True'}),
26 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
27 'created_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
28 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
29 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30 'object_id': ('django.db.models.fields.IntegerField', [], {}),
31 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'blank': 'True'})
33 'contenttypes.contenttype': {
34 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
35 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
36 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
38 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
42 complete_apps = ['api']