summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-ss_images.sql
blob: 80f1295f1ac0a925075b1f9825e9710d333e2a50 (plain)
1
2
3
4
5
-- More statistics, for version 1.6

ALTER TABLE /*$wgDBprefix*/site_stats ADD ss_images int default '0';
SELECT @images := COUNT(*) FROM /*$wgDBprefix*/image;
UPDATE /*$wgDBprefix*/site_stats SET ss_images=@images;