r71222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71221‎ | r71222 | r71223 >
Date:00:08, 18 August 2010
Author:kaldari
Status:ok
Tags:
Comment:
forgot to update main SQL file for r71004, cleaning up SQL formatting
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.sql (modified) (history)
  • /trunk/extensions/CentralNotice/patches/patch-notice_languages.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/patches/patch-notice_languages.sql
@@ -1,8 +1,8 @@
22 -- Update to allow for any number of languages per notice.
33
44 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cn_notice_languages (
5 - `id` int unsigned NOT NULL PRIMARY KEY auto_increment,
6 - `not_id` int unsigned NOT NULL,
7 - `not_language` varchar(32) NOT NULL
 5+ `id` int unsigned NOT NULL PRIMARY KEY auto_increment,
 6+ `not_id` int unsigned NOT NULL,
 7+ `not_language` varchar(32) NOT NULL
88 ) /*$wgDBTableOptions*/;
9 -CREATE UNIQUE INDEX /*i*/cn_not_id_not_language ON /*$wgDBprefix*/cn_notice_languages (not_id, not_language);
\ No newline at end of file
 9+CREATE UNIQUE INDEX /*i*/cn_not_id_not_language ON /*$wgDBprefix*/cn_notice_languages (not_id, not_language);
Index: trunk/extensions/CentralNotice/CentralNotice.sql
@@ -1,30 +1,32 @@
22 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cn_notices (
3 - `not_id` int NOT NULL PRIMARY KEY auto_increment,
4 - `not_name` varchar(255) NOT NULL,
5 - `not_start` char(14) NOT NULL,
6 - `not_end` char(14) NOT NULL,
7 - `not_enabled` bool NOT NULL default '0',
8 - `not_preferred` bool NOT NULL default '0',
9 - `not_locked` bool NOT NULL default '0',
10 - `not_language` varchar(32) NOT NULL,
11 - `not_project` varchar(255) NOT NULL
 3+ `not_id` int NOT NULL PRIMARY KEY auto_increment,
 4+ `not_name` varchar(255) NOT NULL,
 5+ `not_start` char(14) NOT NULL,
 6+ `not_end` char(14) NOT NULL,
 7+ `not_enabled` bool NOT NULL default '0',
 8+ `not_preferred` bool NOT NULL default '0',
 9+ `not_locked` bool NOT NULL default '0',
 10+ `not_language` varchar(32) NOT NULL,
 11+ `not_project` varchar(255) NOT NULL
1212 ) /*$wgDBTableOptions*/;
1313
1414 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cn_assignments (
15 - `asn_id` int NOT NULL PRIMARY KEY auto_increment,
16 - `not_id` int NOT NULL,
17 - `tmp_id` int NOT NULL,
18 - `tmp_weight` int NOT NULL
 15+ `asn_id` int NOT NULL PRIMARY KEY auto_increment,
 16+ `not_id` int NOT NULL,
 17+ `tmp_id` int NOT NULL,
 18+ `tmp_weight` int NOT NULL
1919 ) /*$wgDBTableOptions*/;
2020
2121 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cn_templates (
22 - `tmp_id` int NOT NULL PRIMARY KEY auto_increment,
23 - `tmp_name` varchar(255) default NULL
 22+ `tmp_id` int NOT NULL PRIMARY KEY auto_increment,
 23+ `tmp_name` varchar(255) default NULL
 24+ `tmp_display_anon` BOOLEAN NOT NULL DEFAULT 1,
 25+ `tmp_display_account` BOOLEAN NOT NULL DEFAULT 1;
2426 ) /*$wgDBTableOptions*/;
2527
2628 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cn_notice_languages (
27 - `id` int unsigned NOT NULL PRIMARY KEY auto_increment,
28 - `not_id` int unsigned NOT NULL,
29 - `not_language` varchar(32) NOT NULL
 29+ `id` int unsigned NOT NULL PRIMARY KEY auto_increment,
 30+ `not_id` int unsigned NOT NULL,
 31+ `not_language` varchar(32) NOT NULL
3032 ) /*$wgDBTableOptions*/;
31 -CREATE UNIQUE INDEX /*i*/cn_not_id_not_language ON /*$wgDBprefix*/cn_notice_languages (not_id, not_language);
\ No newline at end of file
 33+CREATE UNIQUE INDEX /*i*/cn_not_id_not_language ON /*$wgDBprefix*/cn_notice_languages (not_id, not_language);

Follow-up revisions

RevisionCommit summaryAuthorDate
r71223missing comma fix for r71222kaldari00:18, 18 August 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r71004allow control of whether banners are displayed to anon and/or logged in userskaldari01:52, 13 August 2010

Status & tagging log