r20424 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20423‎ | r20424 | r20425 >
Date:00:50, 14 March 2007
Author:river
Status:old
Tags:
Comment:
syntax errors in postgres schema
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -136,7 +136,7 @@
137137 ar_rev_id INTEGER,
138138 ar_text_id INTEGER,
139139 ar_deleted INTEGER NOT NULL DEFAULT '0',
140 - ar_len INTEGER NULL,
 140+ ar_len INTEGER NULL
141141 );
142142 CREATE INDEX archive_name_title_timestamp ON archive (ar_namespace,ar_title,ar_timestamp);
143143
@@ -224,8 +224,8 @@
225225 ipb_enable_autoblock CHAR NOT NULL DEFAULT '1',
226226 ipb_expiry TIMESTAMPTZ NOT NULL,
227227 ipb_range_start TEXT,
228 - ipb_range_end TEXT
229 - ipb_deleted INTEGER NOT NULL, DEFAULT '0',
 228+ ipb_range_end TEXT,
 229+ ipb_deleted INTEGER NOT NULL DEFAULT '0'
230230 );
231231 CREATE INDEX ipb_address ON ipblocks (ipb_address);
232232 CREATE INDEX ipb_user ON ipblocks (ipb_user);
@@ -285,8 +285,8 @@
286286 fa_description TEXT NOT NULL,
287287 fa_user INTEGER NULL REFERENCES mwuser(user_id) ON DELETE SET NULL,
288288 fa_user_text TEXT NOT NULL,
289 - fa_timestamp TIMESTAMPTZ
290 - fa_deleted INTEGER NOT NULL DEFAULT '0',
 289+ fa_timestamp TIMESTAMPTZ,
 290+ fa_deleted INTEGER NOT NULL DEFAULT '0'
291291 );
292292 CREATE INDEX fa_name_time ON filearchive (fa_name, fa_timestamp);
293293 CREATE INDEX fa_dupe ON filearchive (fa_storage_group, fa_storage_key);
@@ -321,7 +321,7 @@
322322 rc_logid INTEGER NOT NULL DEFAULT '0',
323323 rc_log_type TEXT,
324324 rc_log_action TEXT,
325 - rc_params TEXT,
 325+ rc_params TEXT
326326 );
327327 CREATE INDEX rc_timestamp ON recentchanges (rc_timestamp);
328328 CREATE INDEX rc_namespace_title ON recentchanges (rc_namespace, rc_title);
@@ -407,7 +407,7 @@
408408 log_comment TEXT,
409409 log_params TEXT,
410410 log_deleted INTEGER NOT NULL DEFAULT '0',
411 - log_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('log_log_id_seq'),
 411+ log_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('log_log_id_seq')
412412 );
413413 CREATE INDEX logging_type_name ON logging (log_type, log_timestamp);
414414 CREATE INDEX logging_user_time ON logging (log_timestamp, log_user);