Adding library own page
[wolnelektury.git] / apps / sponsors / migrations / 0001_initial.py
1 # encoding: 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 class Migration(SchemaMigration):
8
9     def forwards(self, orm):
10         
11         # Adding model 'Sponsor'
12         db.create_table('sponsors_sponsor', (
13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('name', self.gf('django.db.models.fields.CharField')(max_length=120)),
15             ('_description', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
16             ('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
17             ('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
18         ))
19         db.send_create_signal('sponsors', ['Sponsor'])
20
21         # Adding model 'SponsorPage'
22         db.create_table('sponsors_sponsorpage', (
23             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
24             ('name', self.gf('django.db.models.fields.CharField')(max_length=120)),
25             ('sponsors', self.gf('jsonfield.fields.JSONField')(default={})),
26             ('_html', self.gf('django.db.models.fields.TextField')(blank=True)),
27             ('sprite', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
28         ))
29         db.send_create_signal('sponsors', ['SponsorPage'])
30
31
32     def backwards(self, orm):
33         
34         # Deleting model 'Sponsor'
35         db.delete_table('sponsors_sponsor')
36
37         # Deleting model 'SponsorPage'
38         db.delete_table('sponsors_sponsorpage')
39
40
41     models = {
42         'sponsors.sponsor': {
43             'Meta': {'object_name': 'Sponsor'},
44             '_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
45             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46             'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
47             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
48             'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
49         },
50         'sponsors.sponsorpage': {
51             'Meta': {'object_name': 'SponsorPage'},
52             '_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
53             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
55             'sponsors': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
56             'sprite': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'})
57         }
58     }
59
60     complete_apps = ['sponsors']