Create rule_disable table
|
_ , err := tx . Exec ( `
CREATE TABLE rule_disable (
org_id VARCHAR NOT NULL,
user_id VARCHAR NOT NULL,
rule_id VARCHAR NOT NULL,
error_key VARCHAR NOT NULL,
justification VARCHAR,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP,
PRIMARY KEY(user_id, org_id, rule_id, error_key)
)` )
return err
} ,
StepDown : func ( tx * sql . Tx , driver types . DBDriver ) error {
_ , err := tx . Exec ( `
DROP TABLE rule_disable;
` )
return err
} ,
}
|