Package ZenModel :: Package migrate :: Module eventclassmapping
[show private | hide private]
[frames | no frames]

Module ZenModel.migrate.eventclassmapping

Add eventClassMapping to status and history tables
Classes
EventClassMapping  

Variable Summary
Logger log = <logging.Logger instance at 0x2849d78>
int MYSQL_ERROR_TRIGGER_DOESNT_EXIST = 1360                                                                  
str trigger = '\n    CREATE TRIGGER status_delete BEFORE DEL...

Variable Details

log

Type:
Logger
Value:
<logging.Logger instance at 0x2849d78>                                 

MYSQL_ERROR_TRIGGER_DOESNT_EXIST

Type:
int
Value:
1360                                                                  

trigger

Type:
str
Value:
'''
    CREATE TRIGGER status_delete BEFORE DELETE ON status
    FOR EACH ROW INSERT INTO history SET
            dedupid=OLD.dedupid,
            evid=OLD.evid,
            device=OLD.device,
            component=OLD.component,
            eventClass=OLD.eventClass,
...                                                                    

Generated by Epydoc 2.1 on Thu Aug 16 09:55:07 2007 http://epydoc.sf.net