r112144 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112143‎ | r112144 | r112145 >
Date:20:56, 22 February 2012
Author:reedy
Status:ok
Tags:
Comment:
Add all index to UploadWizard.sql, then it's easily enableable by using 1 file, rather than having to use 4 files
Modified paths:
  • /trunk/extensions/UploadWizard/UploadWizard.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/UploadWizard.sql
@@ -9,9 +9,14 @@
1010 campaign_enabled TINYINT NOT NULL default '0'
1111 ) /*$wgDBTableOptions*/;
1212
 13+CREATE UNIQUE INDEX /*i*/uw_campaigns_name ON /*_*/uw_campaigns (campaign_name);
 14+
1315 -- Upload wizard campaign config
1416 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/uw_campaign_conf (
1517 cc_campaign_id SMALLINT unsigned NOT NULL,
1618 cc_property VARCHAR(255) NULL,
1719 cc_value BLOB NULL
1820 ) /*$wgDBTableOptions*/;
 21+
 22+CREATE UNIQUE INDEX /*i*/uw_cc_id_property ON /*_*/uw_campaign_conf (cc_campaign_id,cc_property);
 23+CREATE INDEX /*i*/uw_cc_property ON /*_*/uw_campaign_conf (cc_property);
\ No newline at end of file

Status & tagging log