update librarian
[redakcja.git] / apps / cover / migrations / 0001_initial.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         # Adding model 'Image'
12         db.create_table('cover_image', (
13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
15             ('author', self.gf('django.db.models.fields.CharField')(max_length=255)),
16             ('license_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
17             ('license_url', self.gf('django.db.models.fields.URLField')(max_length=255, blank=True)),
18             ('source_url', self.gf('django.db.models.fields.URLField')(max_length=200)),
19             ('download_url', self.gf('django.db.models.fields.URLField')(unique=True, max_length=200)),
20             ('file', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
21         ))
22         db.send_create_signal('cover', ['Image'])
23
24
25     def backwards(self, orm):
26         # Deleting model 'Image'
27         db.delete_table('cover_image')
28
29
30     models = {
31         'cover.image': {
32             'Meta': {'object_name': 'Image'},
33             'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
34             'download_url': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
35             'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
36             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37             'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
38             'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
39             'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
40             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
41         }
42     }
43
44     complete_apps = ['cover']