# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    depends_on = [
        ('blog', '0006_auto__del_field_blogpost__keywords__add_field_blogpost_keywords_string'),
        ('pages', '0002_auto__del_field_page__keywords__add_field_page_keywords_string__chg_fi'),
        ]

    def forwards(self, orm):
        
        # Deleting model 'Keyword'
        db.delete_table('core_keyword')
    
    
    def backwards(self, orm):
        
        # Adding model 'Keyword'
        db.create_table('core_keyword', (
            ('slug', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=100)),
        ))
        db.send_create_signal('core', ['Keyword'])
    
    
    models = {
        
    }
    
    complete_apps = ['core']

# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from django.conf import settings

class Migration(SchemaMigration):

    if 'mezzanine.blog' in settings.INSTALLED_APPS:
        depends_on = [
            ('blog', '0006_auto__del_field_blogpost__keywords__add_field_blogpost_keywords_string'),
            ('pages', '0002_auto__del_field_page__keywords__add_field_page_keywords_string__chg_fi'),
            ]
    else:
        depends_on = [
            ('pages', '0002_auto__del_field_page__keywords__add_field_page_keywords_string__chg_fi'),
            ]

    def forwards(self, orm):
        
        # Deleting model 'Keyword'
        db.delete_table('core_keyword')
    
    
    def backwards(self, orm):
        
        # Adding model 'Keyword'
        db.create_table('core_keyword', (
            ('slug', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=100)),
        ))
        db.send_create_signal('core', ['Keyword'])
    
    
    models = {
        
    }
    
    complete_apps = ['core']

fix migration without blog app