wiki.techinc.nl/maintenance/archives/patch-archive-page_id.sql
Brion Vibber 5a9878f32d Fixups for page id field in the archive table:
* Make the field nullable for consistency with ar_rev_id and ar_text_id and between MySQL and PostgreSQL and generally so you can cleanly tell between bogus fields and ones that predate use of the field
* Remove duplicate incorrect adding of the field for postgres
* Rename to ar_page_id for consistency with ar_rev_id and ar_text_id
* Rename the patch file for naming consistency

Note that there's no documentation of this schema change in the release notes either, which bugs me a bit.
2007-08-11 14:43:47 +00:00

6 lines
189 B
SQL

-- Reference to page_id. Useful for sysadmin fixing of large
-- pages merged together in the archives
-- Added 2007-07-21
ALTER TABLE /*$wgDBprefix*/archive
ADD ar_page_id int unsigned;