Librarian in regular requirements.
[redakcja.git] / apps / cover / migrations / 0003_auto__chg_field_image_source_url.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11
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))
14
15     def backwards(self, orm):
16
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.")
19
20     models = {
21         u'cover.image': {
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'})
31         }
32     }
33
34     complete_apps = ['cover']