r73476 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73475‎ | r73476 | r73477 >
Date:19:59, 21 September 2010
Author:catrope
Status:deferred
Tags:
Comment:
1.16wmf4: Copy PrefSwitch SQL patches from trunk
Modified paths:
  • /branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/patches (added) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/patches/PrefSwitch-addusertext.sql
@@ -0,0 +1,5 @@
 2+--
 3+-- Schema update for OptIn
 4+--
 5+
 6+ALTER TABLE /*_*/prefswitch_survey ADD COLUMN pss_user_text varchar(255) binary NOT NULL AFTER pss_user;
\ No newline at end of file
Property changes on: branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/patches/PrefSwitch-addusertext.sql
___________________________________________________________________
Added: svn:eol-style
17 + native
Index: branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/patches/PrefSwitch.sql
@@ -0,0 +1,28 @@
 2+--
 3+-- Schema for OptIn
 4+--
 5+
 6+CREATE TABLE IF NOT EXISTS /*_*/prefswitch_survey (
 7+ -- User ID
 8+ pss_user int NOT NULL,
 9+
 10+ -- User text
 11+ pss_user_text varchar(255) binary NOT NULL,
 12+
 13+ -- Timestamp
 14+ pss_timestamp binary(14) NOT NULL,
 15+
 16+ -- Survey name (out, feedback, etc.)
 17+ pss_name varchar(16) NOT NULL,
 18+
 19+ -- Question ID (key in $wgPrefSwitchSurvey)
 20+ pss_question varchar(16) NOT NULL,
 21+
 22+ -- Answer ID (key in $wgPrefSwitchSurvey[pss_question]['answers'])
 23+ pss_answer text NULL,
 24+
 25+ -- Optional text associated with the answer
 26+ pss_answer_data text NULL
 27+) /*$wgDBTableOptions*/;
 28+
 29+CREATE UNIQUE INDEX /*i*/pss_user_timestamp_name_question ON /*_*/prefswitch_survey (pss_user, pss_timestamp, pss_name, pss_question);
Property changes on: branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/patches/PrefSwitch.sql
___________________________________________________________________
Added: svn:eol-style
130 + native

Status & tagging log