MWX/SpamFerret/tables/attempt: Difference between revisions

From Woozle Writes Code
< MWX‎ | SpamFerret‎ | tables
Jump to navigation Jump to search
(Created page with '==SQL== <mysql>CREATE TABLE `attempts` ( `ID` INT NOT NULL AUTO_INCREMENT, `When` DATETIME COMMENT "timestamp of attempt", `ID_Pattern` INT …')
 
m (engine)
Line 13: Line 13:
   `Diff`      MEDIUMTEXT                COMMENT "difference between original and attempted edit",
   `Diff`      MEDIUMTEXT                COMMENT "difference between original and attempted edit",
   PRIMARY KEY(`ID`)
   PRIMARY KEY(`ID`)
);</mysql>
) ENGINE = MYISAM;</mysql>

Revision as of 18:54, 5 August 2009

SQL

<mysql>CREATE TABLE `attempts` (

 `ID`         INT NOT NULL AUTO_INCREMENT,
 `When`       DATETIME                   COMMENT "timestamp of attempt",
 `ID_Pattern` INT DEFAULT NULL           COMMENT "(patterns.ID) matching pattern found",
 `ID_Client`  INT NOT NULL               COMMENT "(clients.ID) spamming client",
 `IDS_Session` varchar(255)              COMMENT "PHP session ID from session_id()",
 `Code`       varchar(15)                COMMENT "type of attempt",
 `PageServer` varchar(63)                COMMENT "identifier of wiki being attacked (usually domain)",
 `PageName`   varchar(255)               COMMENT "name of page where the spam would have displayed",
 `MatchText`  varchar(255) DEFAULT NULL  COMMENT "optional: text that triggered the filter",
 `didAllow`   TINYINT(1)   DEFAULT FALSE COMMENT "edit was allowed",
 `Diff`       MEDIUMTEXT                 COMMENT "difference between original and attempted edit",
 PRIMARY KEY(`ID`)

) ENGINE = MYISAM;</mysql>