X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae34def10b226251f0d752634a7de4f1a6b8775d..b2af4e3e7a74ea0ec0f02c3eefbab4c3d0a0d6c6:/apps/sponsors/migrations/0001_initial.py diff --git a/apps/sponsors/migrations/0001_initial.py b/apps/sponsors/migrations/0001_initial.py index 35eebaa6d..daccec53b 100644 --- a/apps/sponsors/migrations/0001_initial.py +++ b/apps/sponsors/migrations/0001_initial.py @@ -5,11 +5,11 @@ from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): - + def forwards(self, orm): - + # Adding model 'Sponsor' - db.mock_model('sponsors_sponsor', ( + db.create_table('sponsors_sponsor', ( ('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)), ('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100)), ('_description', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)), @@ -19,24 +19,24 @@ class Migration(SchemaMigration): db.send_create_signal('sponsors', ['Sponsor']) # Adding model 'SponsorPage' - db.mock_model('sponsors_sponsorpage', ( + db.create_table('sponsors_sponsorpage', ( ('_html', self.gf('django.db.models.fields.TextField')(blank=True)), ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('sponsors', self.gf('sponsors.fields.JSONField')(default={})), ('name', self.gf('django.db.models.fields.CharField')(max_length=120)), )) db.send_create_signal('sponsors', ['SponsorPage']) - - + + def backwards(self, orm): - + # Deleting model 'Sponsor' db.delete_table('sponsors_sponsor') # Deleting model 'SponsorPage' db.delete_table('sponsors_sponsorpage') - - + + models = { 'sponsors.sponsor': { 'Meta': {'object_name': 'Sponsor'}, @@ -54,5 +54,5 @@ class Migration(SchemaMigration): 'sponsors': ('sponsors.fields.JSONField', [], {'default': '{}'}) } } - + complete_apps = ['sponsors']