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 'Document'
12 db.create_table('lessons_document', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('title', self.gf('django.db.models.fields.CharField')(max_length=120)),
15 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=50, db_index=True)),
16 ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
17 ('author', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
18 ('slideshare_id', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
19 ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
20 ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
22 db.send_create_signal('lessons', ['Document'])
25 def backwards(self, orm):
27 # Deleting model 'Document'
28 db.delete_table('lessons_document')
33 'Meta': {'object_name': 'Document'},
34 'author': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
35 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
36 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
37 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
38 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39 'slideshare_id': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
40 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
41 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'})
45 complete_apps = ['lessons']