ar_len int unsigned,
-- Reference to page_id. Useful for sysadmin fixing of large pages
- -- merged together in the archives
- ar_page int unsigned NOT NULL,
+ -- merged together in the archives, or for cleanly restoring a page
+ -- at its original ID number if possible.
+ --
+ -- Will be NULL for pages deleted prior to 1.11.
+ ar_page_id int unsigned,
KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp),
KEY usertext_timestamp (ar_user_text,ar_timestamp)
array( 'page_restrictions', 'pr_id', 'patch-page_restrictions_sortkey.sql' ),
array( 'ipblocks', 'ipb_block_email', 'patch-ipb_emailban.sql' ),
array( 'oldimage', 'oi_metadata', 'patch-oi_metadata.sql'),
- array( 'archive', 'ar_page', 'patch-archive-ar_page.sql'),
+ array( 'archive', 'ar_page_id', 'patch-archive-page_id.sql'),
array( 'image', 'img_sha1', 'patch-img_sha1.sql' ),
);
$newcols = array(
array("archive", "ar_len", "INTEGER"),
- array("archive", "ar_page", "INTEGER"),
+ array("archive", "ar_page_id", "INTEGER"),
array("image", "img_sha1", "TEXT NOT NULL DEFAULT ''"),
array("ipblocks", "ipb_anon_only", "CHAR NOT NULL DEFAULT '0'"),
array("ipblocks", "ipb_block_email", "CHAR NOT NULL DEFAULT '0'"),
array("recentchanges", "rc_old_len", "INTEGER"),
array("recentchanges", "rc_params", "TEXT"),
array("revision", "rev_len", "INTEGER"),
- array("archive", "ar_page", "INTEGER NOT NULL DEFAULT 0"),
);