r15781 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15780‎ | r15781 | r15782 >
Date:17:30, 22 July 2006
Author:greg
Status:old
Tags:
Comment:
Minor whitespace cleanup
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -29,8 +29,8 @@
3030 CREATE INDEX user_email_token_idx ON "user" (user_email_token);
3131
3232 -- Create a dummy user to satisfy fk contraints especially with revisions
33 -INSERT INTO "user" VALUES
34 - (DEFAULT,'Anonymous','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,now(),now());
 33+INSERT INTO "user"
 34+ VALUES (DEFAULT,'Anonymous','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,now(),now());
3535
3636 CREATE TABLE user_groups (
3737 ug_user INTEGER NULL REFERENCES "user"(user_id) ON DELETE CASCADE,
@@ -78,12 +78,12 @@
7979 $mw$;
8080
8181 CREATE TRIGGER page_deleted AFTER DELETE ON page
82 -FOR EACH ROW EXECUTE PROCEDURE page_deleted();
 82+ FOR EACH ROW EXECUTE PROCEDURE page_deleted();
8383
8484
8585 -- Create a dummy page to satisfy fk contraints where a page_id of "0" is added
8686 INSERT INTO page (page_id,page_namespace,page_title,page_random,page_latest,page_len)
87 -VALUES (0,0,'',0.0,0,0);
 87+ VALUES (0,0,'',0.0,0,0);
8888
8989
9090 CREATE SEQUENCE rev_rev_id_val;
@@ -421,7 +421,7 @@
422422 $mw$;
423423
424424 CREATE TRIGGER ts2_page_title BEFORE INSERT OR UPDATE ON page
425 -FOR EACH ROW EXECUTE PROCEDURE ts2_page_title();
 425+ FOR EACH ROW EXECUTE PROCEDURE ts2_page_title();
426426
427427
428428 ALTER TABLE text ADD textvector tsvector;
@@ -439,9 +439,9 @@
440440 $mw$;
441441
442442 CREATE TRIGGER ts2_page_text BEFORE INSERT OR UPDATE ON text
443 -FOR EACH ROW EXECUTE PROCEDURE ts2_page_text();
 443+ FOR EACH ROW EXECUTE PROCEDURE ts2_page_text();
444444
445 -CREATE OR REPLACE FUNCTION add_interwiki (TEXT,INT,CHAR) RETURNS INT LANGUAGE SQL AS
 445+CREATE FUNCTION add_interwiki (TEXT,INT,CHAR) RETURNS INT LANGUAGE SQL AS
446446 $mw$
447447 INSERT INTO interwiki (iw_prefix, iw_url, iw_local) VALUES ($1,$2,$3);
448448 SELECT 1;
@@ -464,7 +464,7 @@
465465 );
466466
467467 INSERT INTO mediawiki_version (type,mw_version,sql_version,sql_date)
468 -VALUES ('Creation','??','$LastChangedRevision$','$LastChangedDate$');
 468+ VALUES ('Creation','??','$LastChangedRevision$','$LastChangedDate$');
469469
470470
471471 COMMIT;