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 'Publisher'
12 db.create_table(u'publishers_publisher', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
15 ('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
17 db.send_create_signal(u'publishers', ['Publisher'])
20 def backwards(self, orm):
21 # Deleting model 'Publisher'
22 db.delete_table(u'publishers_publisher')
26 u'publishers.publisher': {
27 'Meta': {'object_name': 'Publisher'},
28 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29 'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
30 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
34 complete_apps = ['publishers']