r23216 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23215‎ | r23216 | r23217 >
Date:13:44, 22 June 2007
Author:greg
Status:old
Tags:
Comment:
Add Postgres schema. Add missing val_type column.
Modified paths:
  • /trunk/extensions/Review/Review.pg.sql (added) (history)
  • /trunk/extensions/Review/Review.php (modified) (history)
  • /trunk/extensions/Review/Review.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/Review/Review.sql
@@ -4,6 +4,7 @@
55 val_user int(10) NOT NULL,
66 val_page int(10) NOT NULL,
77 val_revision int(10) NOT NULL,
 8+ val_type int NOT NULL,
89 val_value int(2) NOT NULL,
910 val_comment varchar(255) NOT NULL default '',
1011 val_ip varchar(255) NOT NULL default '',
Index: trunk/extensions/Review/Review.pg.sql
@@ -0,0 +1,18 @@
 2+-- This stores user rating data for revisions
 3+-- Postgres version
 4+
 5+CREATE SEQUENCE validate_id_seq;
 6+
 7+CREATE TABLE validate (
 8+ val_id INTEGER NOT NULL DEFAULT nextval('validate_id_seq'),
 9+ val_user INTEGER NOT NULL,
 10+ val_page INTEGER NOT NULL,
 11+ val_revision INTEGER NOT NULL,
 12+ val_type SMALLINT NOT NULL DEFAULT 1,
 13+ val_value SMALLINT NOT NULL,
 14+ val_comment TEXT NOT NULL DEFAULT '',
 15+ val_ip TEXT NOT NULL DEFAULT '',
 16+ PRIMARY KEY (val_id)
 17+);
 18+
 19+CREATE INDEX validate_index ON validate(val_user,val_revision);
Property changes on: trunk/extensions/Review/Review.pg.sql
___________________________________________________________________
Added: svn:eol-style
120 + native
Index: trunk/extensions/Review/Review.php
@@ -483,7 +483,7 @@
484484 /* FROM */ 'validate',
485485 /* SELECT */ '*',
486486 /* WHERE */ $conds,
487 - $fname
 487+ __METHOD__
488488 );
489489
490490 $ret = array() ;

Status & tagging log