r109210 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109209‎ | r109210 | r109211 >
Date:20:48, 17 January 2012
Author:awjrichards
Status:ok
Tags:
Comment:
Added auto-increment id field for cl_zip5 table. clz5_zip cannot be primary key as there is a 1:many relationship between clz5_zip and clz5_rep_id
Modified paths:
  • /trunk/extensions/CongressLookup/patches/CongressLookup.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CongressLookup/patches/CongressLookup.sql
@@ -32,9 +32,11 @@
3333 ) /*$wgDBTableOptions*/;
3434
3535 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cl_zip5 (
36 - `clz5_zip` int(5) unsigned NOT NULL PRIMARY KEY,
 36+ `clz5_id` int(10) unsigned NOT NULL PRIMARY KEY auto_increment,
 37+ `clz5_zip` int(5) unsigned NOT NULL,
3738 `clz5_rep_id` int(10) unsigned DEFAULT NULL
3839 ) /*$wgDBTableOptions*/;
 40+CREATE INDEX /*i*/clz5_zip ON /*$wgDBprefix*/cl_zip5 (clz5_zip);
3941
4042 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cl_zip9 (
4143 `clz9_zip` int(9) unsigned NOT NULL PRIMARY KEY,

Status & tagging log