3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding model 'Author'
12 db.create_table('pdcounter_author', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('name', self.gf('django.db.models.fields.CharField')(max_length=50, db_index=True)),
15 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=120, unique=True, db_index=True)),
16 ('sort_key', self.gf('django.db.models.fields.CharField')(max_length=120, db_index=True)),
17 ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
18 ('death', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
19 ('gazeta_link', self.gf('django.db.models.fields.CharField')(max_length=240, blank=True)),
20 ('wiki_link', self.gf('django.db.models.fields.CharField')(max_length=240, blank=True)),
22 db.send_create_signal('pdcounter', ['Author'])
24 # Adding model 'BookStub'
25 db.create_table('pdcounter_bookstub', (
26 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
27 ('title', self.gf('django.db.models.fields.CharField')(max_length=120)),
28 ('author', self.gf('django.db.models.fields.CharField')(max_length=120)),
29 ('pd', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
30 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=120, unique=True, db_index=True)),
31 ('translator', self.gf('django.db.models.fields.TextField')(blank=True)),
33 db.send_create_signal('pdcounter', ['BookStub'])
36 def backwards(self, orm):
38 # Deleting model 'Author'
39 db.delete_table('pdcounter_author')
41 # Deleting model 'BookStub'
42 db.delete_table('pdcounter_bookstub')
47 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Author'},
48 'death': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
49 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
50 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
51 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52 'name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
53 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'unique': 'True', 'db_index': 'True'}),
54 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
55 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'})
57 'pdcounter.bookstub': {
58 'Meta': {'ordering': "('title',)", 'object_name': 'BookStub'},
59 'author': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
60 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61 'pd': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
62 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'unique': 'True', 'db_index': 'True'}),
63 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
64 'translator': ('django.db.models.fields.TextField', [], {'blank': 'True'})
68 complete_apps = ['pdcounter']