# 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):
        PyRule = db.mock_model(model_name="PyRule", db_table="main_pyrule", db_tablespace="", pk_field_name="id", pk_field_type=models.AutoField)
        db.add_column("sa_managedobject", "config_diff_filter_rule",
            models.ForeignKey(PyRule, verbose_name="Config Notification Filter pyRule", null=True, blank=True))
    
    def backwards(self):
        db.delete_column("sa_managedobject", "config_diff_filter_rule_id")
    
