X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/892198abd0775399c80104d6ee16aa0f1092045d..e2b91b5e02b319565868635cf67799aabbda33fd:/apps/picture/migrations/0003_auto__add_field_picture_extra_info.py diff --git a/apps/picture/migrations/0003_auto__add_field_picture_extra_info.py b/apps/picture/migrations/0003_auto__add_field_picture_extra_info.py new file mode 100644 index 000000000..1e9b8bb96 --- /dev/null +++ b/apps/picture/migrations/0003_auto__add_field_picture_extra_info.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +import 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 'Picture.extra_info' + db.add_column(u'picture_picture', 'extra_info', + self.gf('jsonfield.fields.JSONField')(default={}), + keep_default=False) + + + def backwards(self, orm): + # Deleting field 'Picture.extra_info' + db.delete_column(u'picture_picture', 'extra_info') + + + models = { + u'picture.picture': { + 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'}, + 'areas': ('jsonfield.fields.JSONField', [], {'default': '{}'}), + 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}), + 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}), + 'extra_info': ('jsonfield.fields.JSONField', [], {'default': '{}'}), + 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}), + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}), + 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}), + 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}), + 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}), + 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}) + } + } + + complete_apps = ['picture'] \ No newline at end of file