1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as datetime
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 'Contact.key'
12 db.add_column(u'contact_contact', 'key',
13 self.gf('django.db.models.fields.CharField')(db_index=True, default='', max_length=64, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Contact.key'
19 db.delete_column(u'contact_contact', 'key')
23 u'contact.attachment': {
24 'Meta': {'object_name': 'Attachment'},
25 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']"}),
26 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
27 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28 'tag': ('django.db.models.fields.CharField', [], {'max_length': '64'})
31 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'},
32 'body': ('jsonfield.fields.JSONField', [], {}),
33 'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
34 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
35 'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_index': 'True'}),
36 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37 'ip': ('django.db.models.fields.IPAddressField', [], {'default': "'127.0.0.1'", 'max_length': '15'}),
38 'key': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'blank': 'True'})
42 complete_apps = ['contact']