MWX/SpamFerret/tables/pattern archive

From Woozle Writes Code
< MWX‎ | SpamFerret‎ | tables
Revision as of 17:23, 5 August 2009 by Woozle (talk | contribs) (Created page with '==About== * '''History''': ** '''2009-08-05''' Created for Special:SpamFerret ==SQL== <mysql>CREATE TABLE `pattern_archive` ( `ID` INT NOT NULL AUTO_INCREMENT, `ID_Pattern` I…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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,
 `ID_Pattern` INT NOT NULL COMMENT "patterns.ID",
 `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",
 PRIMARY KEY(`ID`)

) ENGINE = MYISAM;</mysql>