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 'Picture.width'
12 db.add_column(u'picture_picture', 'width',
13 self.gf('django.db.models.fields.IntegerField')(null=True),
16 # Adding field 'Picture.height'
17 db.add_column(u'picture_picture', 'height',
18 self.gf('django.db.models.fields.IntegerField')(null=True),
22 def backwards(self, orm):
23 # Deleting field 'Picture.width'
24 db.delete_column(u'picture_picture', 'width')
26 # Deleting field 'Picture.height'
27 db.delete_column(u'picture_picture', 'height')
32 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
33 'areas': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
34 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
35 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
36 'culturepl_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
37 'extra_info': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
38 'height': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
39 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
40 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41 'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
42 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
43 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
44 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
45 'width': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
46 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
47 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
51 complete_apps = ['picture']