MWX/SpamFerret/tables/pattern archive

From Woozle Writes Code
< MWX‎ | SpamFerret‎ | tables
Revision as of 20:54, 5 August 2009 by Woozle (talk | contribs) ("ID_Pattern" is unnecessary; removing it. Added field for human-entered notes.)
Jump to navigation Jump to search

About

  • History:
    • 2009-08-05 Created for Special:SpamFerret

SQL

<mysql>CREATE TABLE `pattern_archive` (

 `ID` INT NOT NULL AUTO_INCREMENT,
 `isURL`     TINYINT(1) COMMENT "TRUE indicates that additional URL-related stats may be collected",
 `isRegex`   TINYINT(1) COMMENT "TRUE = regex (use preg_match()); FALSE = normal string comparison (use stristr())",
 `isDiff`    TINYINT(1) DEFAULT FALSE COMMENT "TRUE = pattern should be compared to the diff, not the edit contents",
 `Count` INT DEFAULT 0 COMMENT "number of attempts",
 `Notes` VARCHAR(255) COMMENT "human-entered notes",
 PRIMARY KEY(`ID`)

) ENGINE = MYISAM;</mysql>