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 model 'Sponsor'
12 db.create_table(u'sponsors_sponsor', (
13 (u'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)),
19 db.send_create_signal(u'sponsors', ['Sponsor'])
21 # Adding model 'SponsorPage'
22 db.create_table(u'sponsors_sponsorpage', (
23 (u'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)),
29 db.send_create_signal(u'sponsors', ['SponsorPage'])
32 def backwards(self, orm):
33 # Deleting model 'Sponsor'
34 db.delete_table(u'sponsors_sponsor')
36 # Deleting model 'SponsorPage'
37 db.delete_table(u'sponsors_sponsorpage')
41 u'sponsors.sponsor': {
42 'Meta': {'object_name': 'Sponsor'},
43 '_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
44 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45 'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
46 'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
47 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
49 u'sponsors.sponsorpage': {
50 'Meta': {'object_name': 'SponsorPage'},
51 '_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
52 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
54 'sponsors': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
55 'sprite': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'})
59 complete_apps = ['sponsors']