Path: blob/master/resources/sql/patches/010.herald.sql
12250 views
CREATE TABLE {$NAMESPACE}_herald.herald_action (1id int unsigned not null auto_increment primary key,2ruleID int unsigned not null,3action varchar(255) not null,4target text not null5);67CREATE TABLE {$NAMESPACE}_herald.herald_rule (8id int unsigned not null auto_increment primary key,9name varchar(255) COLLATE `binary` not null,10authorPHID varchar(64) binary not null,11contentType varchar(255) not null,12mustMatchAll bool not null,13configVersion int unsigned not null default '1',14dateCreated int unsigned not null,15dateModified int unsigned not null,16unique key (authorPHID, name)17);1819CREATE TABLE {$NAMESPACE}_herald.herald_condition (20id int unsigned not null auto_increment primary key,21ruleID int unsigned not null,22fieldName varchar(255) not null,23fieldCondition varchar(255) not null,24value text not null25);2627CREATE TABLE {$NAMESPACE}_herald.herald_transcript (28id int unsigned not null auto_increment primary key,29phid varchar(64) binary not null,30time int unsigned not null,31host varchar(255) not null,32psth varchar(255) not null,33duration float not null,34objectPHID varchar(64) binary not null,35dryRun bool not null,36objectTranscript longblob not null,37ruleTranscripts longblob not null,38conditionTranscripts longblob not null,39applyTranscripts longblob not null,40unique key (phid)41);424344