# 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 'Section'
        db.create_table('arm_sections_section', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('summary', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=50, db_index=True)),
            ('full_slug', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
            ('parent', self.gf('mptt.fields.TreeForeignKey')(to=orm['arm_sections.Section'], null=True, blank=True)),
            ('lft', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
            ('rght', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
            ('tree_id', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
            ('level', self.gf('django.db.models.fields.PositiveIntegerField')(db_index=True)),
        ))
        db.send_create_signal('arm_sections', ['Section'])


    def backwards(self, orm):
        
        # Deleting model 'Section'
        db.delete_table('arm_sections_section')


    models = {
        'arm_sections.section': {
            'Meta': {'object_name': 'Section'},
            'full_slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'parent': ('mptt.fields.TreeForeignKey', [], {'to': "orm['arm_sections.Section']", 'null': 'True', 'blank': 'True'}),
            'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'summary': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
        }
    }

    complete_apps = ['arm_sections']

@@ -1,12 +1,14 @@
 # 
-en
+-*- 
 coding: 
@@ -16,15 +16,54 @@
 tf-8
-%0Aimport
+ -*-%0Afrom south.utils import datetime_utils as
  dat
@@ -159,16 +159,17 @@
 models%0A%0A
+%0A
 class Mi
@@ -220,33 +220,24 @@
 self, orm):%0A
-        %0A
         # Ad
@@ -273,32 +273,33 @@
 db.create_table(
+u
 'arm_sections_se
@@ -321,16 +321,17 @@
        (
+u
 'id', se
@@ -656,23 +656,8 @@
 h=50
-, db_index=True
 )),%0A
@@ -888,16 +888,17 @@
        (
+u
 'lft', s
@@ -982,16 +982,17 @@
        (
+u
 'rght', 
@@ -1077,16 +1077,17 @@
        (
+u
 'tree_id
@@ -1175,16 +1175,17 @@
        (
+u
 'level',
@@ -1299,16 +1299,17 @@
 _signal(
+u
 'arm_sec
@@ -1365,17 +1365,8 @@
 m):%0A
-        %0A
     
@@ -1420,16 +1420,17 @@
 e_table(
+u
 'arm_sec
@@ -1470,16 +1470,17 @@
         
+u
 'arm_sec
@@ -1665,16 +1665,17 @@
         
+u
 'id': ('
@@ -1752,16 +1752,17 @@
         
+u
 'level':
@@ -1850,16 +1850,17 @@
         
+u
 'lft': (
@@ -1998,16 +1998,17 @@
  %7B'to': 
+u
 %22orm%5B'ar
@@ -2077,16 +2077,17 @@
         
+u
 'rght': 
@@ -2247,28 +2247,8 @@
 '50'
-, 'db_index': 'True'
 %7D),%0A
@@ -2448,16 +2448,17 @@
         
+u
 'tree_id

update migration to the output from a newer South (0.8.4)