r32495 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32494‎ | r32495 | r32496 >
Date:12:11, 27 March 2008
Author:aaron
Status:old
Tags:
Comment:
Fix sequence typos
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)
  • /trunk/extensions/CheckUser/cu_log.pg.sql (modified) (history)
  • /trunk/extensions/CheckUser/cu_log_import.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -808,7 +808,7 @@
809809 }
810810
811811 $dbw = wfGetDB( DB_MASTER );
812 - $cul_id = $dbw->nextSequenceValue( 'cu_log_cul_id' );
 812+ $cul_id = $dbw->nextSequenceValue( 'cu_log_cul_id_seq' );
813813 $dbw->insert( 'cu_log',
814814 array(
815815 'cul_id' => $cul_id,
Index: trunk/extensions/CheckUser/cu_log_import.inc
@@ -69,7 +69,7 @@
7070
7171 if( $db ) {
7272 $fields = array(
73 - 'cul_id' => $db->nextSequenceValue( 'cu_log_cul_id' ),
 73+ 'cul_id' => $db->nextSequenceValue( 'cu_log_cul_id_seq' ),
7474 'cul_timestamp' => $db->timestamp( $data['timestamp'] ),
7575 'cul_user' => $user->getID(),
7676 'cul_user_text' => $user->getName(),
Index: trunk/extensions/CheckUser/cu_log.pg.sql
@@ -3,7 +3,7 @@
44
55 CREATE SEQUENCE cu_log_cul_id_seq;
66 CREATE TABLE cu_log (
7 - cul_id INTEGER NOT NULL DEFAULT nextval('cu_log_cul_id'),
 7+ cul_id INTEGER NOT NULL DEFAULT nextval('cu_log_cul_id_seq'),
88 cul_timestamp TIMESTAMPTZ,
99 cul_user INTEGER NULL REFERENCES mwuser(user_id) ON DELETE SET NULL,
1010 cul_user_text TEXT NOT NULL,

Status & tagging log