X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/79a6d9cda6a06a2b7fea86a2f4f1eef307d0cd18..6e28d2a2680de3290eaed5e90cc128d33fe27046:/contact/migrations/0003_auto__add_field_contact_key.py?ds=inline diff --git a/contact/migrations/0003_auto__add_field_contact_key.py b/contact/migrations/0003_auto__add_field_contact_key.py new file mode 100644 index 0000000..abe2ac1 --- /dev/null +++ b/contact/migrations/0003_auto__add_field_contact_key.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +from south.utils import datetime_utils as datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + # Adding field 'Contact.key' + db.add_column(u'contact_contact', 'key', + self.gf('django.db.models.fields.CharField')(db_index=True, default='', max_length=64, blank=True), + keep_default=False) + + + def backwards(self, orm): + # Deleting field 'Contact.key' + db.delete_column(u'contact_contact', 'key') + + + models = { + u'contact.attachment': { + 'Meta': {'object_name': 'Attachment'}, + 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']"}), + 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'tag': ('django.db.models.fields.CharField', [], {'max_length': '64'}) + }, + u'contact.contact': { + 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'}, + 'body': ('jsonfield.fields.JSONField', [], {}), + 'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}), + 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), + 'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_index': 'True'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'ip': ('django.db.models.fields.IPAddressField', [], {'default': "'127.0.0.1'", 'max_length': '15'}), + 'key': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '64', 'blank': 'True'}) + } + } + + complete_apps = ['contact'] \ No newline at end of file