r72314 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72313‎ | r72314 | r72315 >
Date:21:17, 3 September 2010
Author:overlordq
Status:ok
Tags:
Comment:
Fix sequence renaming to be backwards-compat with older versions of PG. Needs merged with 1.16
Modified paths:
  • /trunk/phase3/maintenance/postgres/archives/patch-update_sequences.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/archives/patch-update_sequences.sql
@@ -1,20 +1,20 @@
2 -ALTER SEQUENCE rev_rev_id_val RENAME TO revision_rev_id_seq;
 2+ALTER TABLE revision RENAME rev_rev_id_val TO revision_rev_id_seq;
33 ALTER TABLE revision ALTER COLUMN rev_id SET DEFAULT NEXTVAL('revision_rev_id_seq');
44
5 -ALTER SEQUENCE text_old_id_val RENAME TO text_old_id_seq;
 5+ALTER TABLE pagecontent RENAME text_old_id_val TO text_old_id_seq;
66 ALTER TABLE pagecontent ALTER COLUMN old_id SET DEFAULT nextval('text_old_id_seq');
77
8 -ALTER SEQUENCE category_id_seq RENAME TO category_cat_id_seq;
 8+ALTER TABLE category RENAME category_id_seq TO category_cat_id_seq;
99 ALTER TABLE category ALTER COLUMN cat_id SET DEFAULT nextval('category_cat_id_seq');
1010
11 -ALTER SEQUENCE ipblocks_ipb_id_val RENAME TO ipblocks_ipb_id_seq;
 11+ALTER TABLE ipblocks RENAME ipblocks_ipb_id_val TO ipblocks_ipb_id_seq;
1212 ALTER TABLE ipblocks ALTER COLUMN ipb_id SET DEFAULT nextval('ipblocks_ipb_id_seq');
1313
14 -ALTER SEQUENCE rc_rc_id_seq RENAME TO recentchanges_rc_id_seq;
 14+ALTER TABLE recentchanges RENAME rc_rc_id_seq TO recentchanges_rc_id_seq;
1515 ALTER TABLE recentchanges ALTER COLUMN rc_id SET DEFAULT nextval('recentchanges_rc_id_seq');
1616
17 -ALTER SEQUENCE log_log_id_seq RENAME TO logging_log_id_seq;
 17+ALTER TABLE logging RENAME log_log_id_seq TO logging_log_id_seq;
1818 ALTER TABLE logging ALTER COLUMN log_id SET DEFAULT nextval('logging_log_id_seq');
1919
20 -ALTER SEQUENCE pr_id_val RENAME TO page_restrictions_pr_id_seq;
 20+ALTER TABLE page_restrictions RENAME pr_id_val TO page_restrictions_pr_id_seq;
2121 ALTER TABLE page_restrictions ALTER COLUMN pr_id SET DEFAULT nextval('page_restrictions_pr_id_seq');

Status & tagging log