Interfaces to use it can be added shortly. * Add user_editcount field to provide data for heuristics on account use. Incremented on edit, with lazy initialization from past revision data. Can batch-initialize with maintenance/initEditCount.php (not yet friendly to replication environments, this will do all accounts in one query). * Allow raw SQL subsections in Database::update() SET portion as well as for WHERE portion. Handy for increments and such.
5 lines
204 B
SQL
5 lines
204 B
SQL
ALTER TABLE /*$wgDBprefix*/user
|
|
ADD COLUMN user_editcount int;
|
|
|
|
-- Don't initialize values immediately... or should we?
|
|
-- They will be lazy-evaluated, or batch-filled via maintenance/initEditCount.php
|