*Add ar_parent_id
This commit is contained in:
parent
6d31010f30
commit
072a4dba7f
3 changed files with 7 additions and 0 deletions
3
maintenance/archives/patch-ar_parent_id.sql
Normal file
3
maintenance/archives/patch-ar_parent_id.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
-- Adding ar_deleted field for revisiondelete
|
||||||
|
ALTER TABLE /*$wgDBprefix*/archive
|
||||||
|
ADD ar_parent_id int unsigned default NULL;
|
||||||
|
|
@ -384,6 +384,9 @@ CREATE TABLE /*$wgDBprefix*/archive (
|
||||||
-- Will be NULL for pages deleted prior to 1.11.
|
-- Will be NULL for pages deleted prior to 1.11.
|
||||||
ar_page_id int unsigned,
|
ar_page_id int unsigned,
|
||||||
|
|
||||||
|
-- Original previous revision
|
||||||
|
ar_parent_id int unsigned default NULL,
|
||||||
|
|
||||||
KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp),
|
KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp),
|
||||||
KEY usertext_timestamp (ar_user_text,ar_timestamp)
|
KEY usertext_timestamp (ar_user_text,ar_timestamp)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ $wgMysqlUpdates = array(
|
||||||
array( 'add_table', 'updatelog', 'patch-updatelog.sql' ),
|
array( 'add_table', 'updatelog', 'patch-updatelog.sql' ),
|
||||||
array( 'add_table', 'category', 'patch-category.sql' ),
|
array( 'add_table', 'category', 'patch-category.sql' ),
|
||||||
array( 'do_category_population' ),
|
array( 'do_category_population' ),
|
||||||
|
array( 'add_field', 'archive', 'ar_parent_id', 'patch-ar_parent_id.sql'),
|
||||||
array( 'do_populate_parent_id' ),
|
array( 'do_populate_parent_id' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue