-- liquibase formatted sql
-- changeset cyril:trigger debug log

CREATE TABLE `trigger_debug_log`
(
    `id`            INT          NOT NULL AUTO_INCREMENT,
    `created`       DATETIME     NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `createdBy`     VARCHAR(30)  NULL     DEFAULT NULL,
    `version`       INT          NOT NULL DEFAULT '0',
    `modified`      DATETIME     NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `modifiedBy`    VARCHAR(30)  NULL     DEFAULT NULL,
    `deleted`       TINYINT(1)   NOT NULL DEFAULT '0',
    `tableName`     VARCHAR(255) NULL,
    `triggerName`   VARCHAR(255) NULL,
    `description`   VARCHAR(255) NULL,
    `errorMessages` TEXT         NULL,
    `status`        VARCHAR(255) NULL     default 'success',
    CONSTRAINT pk_trigger_debug_log PRIMARY KEY (id)
);