r109213 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109212‎ | r109213 | r109214 >
Date:20:58, 17 January 2012
Author:awjrichards
Status:ok
Tags:
Comment:
Added auto-increment id field for cl_zip3 table. clz3_zip cannot be a primary key as there is a 1:many relationship between clz3_zip and clz3_state.
Modified paths:
  • /trunk/extensions/CongressLookup/patches/CongressLookup.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CongressLookup/patches/CongressLookup.sql
@@ -27,9 +27,11 @@
2828 ) /*$wgDBTableOptions*/;
2929
3030 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cl_zip3 (
31 - `clz3_zip` int(3) unsigned NOT NULL PRIMARY KEY,
 31+ `clz3_id` int(10) unsigned NOT NULL PRIMARY KEY auto_increment,
 32+ `clz3_zip` int(3) unsigned NOT NULL,
3233 `clz3_state` varchar(2) DEFAULT NULL
3334 ) /*$wgDBTableOptions*/;
 35+CREATE INDEX /*i*/clz3_zip ON /*$wgDBprefix*/cl_zip3 (clz3_zip);
3436
3537 CREATE TABLE IF NOT EXISTS /*$wgDBprefix*/cl_zip5 (
3638 `clz5_id` int(10) unsigned NOT NULL PRIMARY KEY auto_increment,

Follow-up revisions

RevisionCommit summaryAuthorDate
r109222Reverting r109213, change actually not needed due to the way in which the sen...awjrichards21:48, 17 January 2012

Status & tagging log