--- /dev/null
+# encoding: utf-8
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+
+ # Adding model 'Document'
+ db.create_table('lessons_document', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('title', self.gf('django.db.models.fields.CharField')(max_length=120)),
+ ('slug', self.gf('django.db.models.fields.SlugField')(max_length=50, db_index=True)),
+ ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
+ ('author', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
+ ('slideshare_id', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
+ ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+ ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ))
+ db.send_create_signal('lessons', ['Document'])
+
+
+ def backwards(self, orm):
+
+ # Deleting model 'Document'
+ db.delete_table('lessons_document')
+
+
+ models = {
+ 'lessons.document': {
+ 'Meta': {'object_name': 'Document'},
+ 'author': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
+ 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'slideshare_id': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'})
+ }
+ }
+
+ complete_apps = ['lessons']
--- /dev/null
+# encoding: utf-8
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+
+ # Adding field 'Document.html'
+ db.add_column('lessons_document', 'html', self.gf('django.db.models.fields.TextField')(default=None, blank=True), keep_default=False)
+
+
+ def backwards(self, orm):
+
+ # Deleting field 'Document.html'
+ db.delete_column('lessons_document', 'html')
+
+
+ models = {
+ 'lessons.document': {
+ 'Meta': {'object_name': 'Document'},
+ 'author': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
+ 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+ 'html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'slideshare_id': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'})
+ }
+ }
+
+ complete_apps = ['lessons']