* Added table option variable to the SQL patch files, so now upgrading a non-standard schema won't leave your database horribly corrupted. * Added sql.php, for sourcing SQL files with MediaWiki variable substitution. * Disable MySQL's strict mode at session start for MySQL 4.1+, to avoid the various problems that occur when it is on.
13 lines
514 B
SQL
13 lines
514 B
SQL
-- For article validation
|
|
|
|
DROP TABLE IF EXISTS /*$wgDBprefix*/validate;
|
|
CREATE TABLE /*$wgDBprefix*/validate (
|
|
`val_user` int(11) NOT NULL default '0',
|
|
`val_page` int(11) unsigned NOT NULL default '0',
|
|
`val_revision` int(11) unsigned NOT NULL default '0',
|
|
`val_type` int(11) unsigned NOT NULL default '0',
|
|
`val_value` int(11) default '0',
|
|
`val_comment` varchar(255) NOT NULL default '',
|
|
`val_ip` varchar(20) NOT NULL default '',
|
|
KEY `val_user` (`val_user`,`val_revision`)
|
|
) /*$wgDBTableOptions*/;
|