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):
12 # Changing field 'Image.source_url'
13 db.alter_column(u'cover_image', 'source_url', self.gf('django.db.models.fields.URLField')(max_length=200, null=True))
15 def backwards(self, orm):
17 # User chose to not deal with backwards NULL issues for 'Image.source_url'
18 raise RuntimeError("Cannot reverse this migration. 'Image.source_url' and its values cannot be restored.")
22 'Meta': {'object_name': 'Image'},
23 'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
24 'download_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'unique': 'True', 'null': 'True'}),
25 'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
26 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
28 'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
29 'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True'}),
30 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
34 complete_apps = ['cover']