MediaWiki master
SqliteUpdater.php
Go to the documentation of this file.
1<?php
2
11namespace MediaWiki\Installer;
12
19
28
30 protected function getCoreUpdateList() {
31 return [
32 // 1.40
33 [ 'addField', 'externallinks', 'el_to_path', 'patch-externallinks-el_to_path.sql' ],
34
35 // 1.41
36 [ 'addField', 'user', 'user_is_temp', 'patch-user-user_is_temp.sql' ],
37 [ 'runMaintenance', MigrateRevisionCommentTemp::class ],
38 [ 'dropTable', 'revision_comment_temp' ],
39 [ 'runMaintenance', MigrateExternallinks::class ],
40 [ 'modifyField', 'externallinks', 'el_to', 'patch-externallinks-el_to_default.sql' ],
41 [ 'addField', 'pagelinks', 'pl_target_id', 'patch-pagelinks-target_id.sql' ],
42 [ 'dropField', 'externallinks', 'el_to', 'patch-externallinks-drop-el_to.sql' ],
43 [ 'runMaintenance', FixInconsistentRedirects::class ],
44 [ 'modifyField', 'image', 'img_size', 'patch-image-img_size_to_bigint.sql' ],
45 [ 'modifyField', 'filearchive', 'fa_size', 'patch-filearchive-fa_size_to_bigint.sql' ],
46 [ 'modifyField', 'oldimage', 'oi_size', 'patch-oldimage-oi_size_to_bigint.sql' ],
47 [ 'modifyField', 'uploadstash', 'us_size', 'patch-uploadstash-us_size_to_bigint.sql' ],
48
49 // 1.42
50 [ 'addField', 'user_autocreate_serial', 'uas_year', 'patch-user_autocreate_serial-uas_year.sql' ],
51 [ 'addTable', 'block_target', 'patch-block_target.sql' ],
52 [ 'dropIndex', 'categorylinks', 'cl_collation_ext', 'patch-drop-cl_collation_ext.sql' ],
53 [ 'runMaintenance', PopulateUserIsTemp::class ],
54 [ 'dropIndex', 'sites', 'site_type', 'patch-sites-drop_indexes.sql' ],
55 [ 'dropIndex', 'iwlinks', 'iwl_prefix_from_title', 'patch-iwlinks-drop-iwl_prefix_from_title.sql' ],
56
57 // 1.43
58 [ 'migratePagelinks' ],
59 [ 'modifyField', 'change_tag', 'ct_rc_id', 'patch-change_tag-ct_rc_id.sql' ],
60 [ 'runMaintenance', \MigrateBlocks::class ],
61 [ 'dropTable', 'ipblocks' ],
62 [ 'dropField', 'pagelinks', 'pl_title', 'patch-pagelinks-drop-pl_title.sql' ],
63 [ 'addPostDatabaseUpdateMaintenance', FixAutoblockLogTitles::class ],
64
65 // 1.44
66 [ 'addTable', 'file', 'patch-file.sql' ],
67 [ 'addField', 'categorylinks', 'cl_target_id', 'patch-categorylinks-target_id.sql' ],
68 [ 'addTable', 'collation', 'patch-collation.sql' ],
69 [ 'dropTable', 'module_deps' ],
70
71 // 1.45
72 [ 'addTable', 'existencelinks', 'patch-existencelinks.sql' ],
73 [ 'runMaintenance', FixWrongPasswordPrefixes::class ],
74 [ 'addIndex', 'categorylinks', 'cl_timestamp_id', 'patch-categorylinks-cl_timestamp_id.sql' ],
75 [ 'migrateCategorylinks' ],
76 [ 'normalizeCollation' ],
77 [ 'modifyPrimaryKey', 'categorylinks', [ 'cl_from', 'cl_target_id' ], 'patch-categorylinks-pk.sql' ],
78 [ 'addIndex', 'recentchanges', 'rc_source_name_timestamp',
79 'patch-recentchanges-rc_source_name_timestamp.sql' ],
80 [ 'addIndex', 'recentchanges', 'rc_name_source_patrolled_timestamp',
81 'patch-recentchanges-rc_name_source_patrolled_timestamp.sql' ],
82 [ 'dropField', 'recentchanges', 'rc_new', 'patch-recentchanges-drop-rc_new.sql' ],
83 [ 'dropField', 'categorylinks', 'cl_to', 'patch-categorylinks-drop-cl_to-cl_collation.sql' ],
84
85 // 1.46
86 [ 'addTable', 'watchlist_label', 'patch-watchlist_label.sql' ],
87 [ 'dropField', 'recentchanges', 'rc_type', 'patch-recentchanges-drop-rc_type.sql' ],
88 [ 'dropField', 'archive', 'ar_sha1', 'patch-archive-drop-ar_sha1.sql' ],
89 [ 'dropField', 'revision', 'rev_sha1', 'patch-revision-drop-rev_sha1.sql' ],
90 [ 'dropField', 'objectcache', 'modtoken', 'patch-objectcache-drop-modtoken.sql' ],
91 [ 'addField', 'imagelinks', 'il_target_id', 'patch-imagelinks-add-il_target_id.sql' ],
92 ];
93 }
94
96 protected function getInitialUpdateKeys() {
97 return [
98 'filearchive-fa_major_mime-patch-fa_major_mime-chemical.sql',
99 'image-img_major_mime-patch-img_major_mime-chemical.sql',
100 'oldimage-oi_major_mime-patch-oi_major_mime-chemical.sql',
101 'user_groups-ug_group-patch-ug_group-length-increase-255.sql',
102 'user_former_groups-ufg_group-patch-ufg_group-length-increase-255.sql',
103 'user_properties-up_property-patch-up_property.sql',
104 ];
105 }
106}
Fix redirect pages with missing or incomplete row in the redirect table.
An error in a previous version of MediaWiki caused B type passwords to be written with an :A: prefix ...
Apply database changes after updating MediaWiki.
getInitialUpdateKeys()
Get an array of update keys to insert into the updatelog table after a new installation....
getCoreUpdateList()
Get an array of updates to perform on the database.Should return a multidimensional array....
Maintenance script that merges the revision_comment_temp table into the revision table.
Maintenance script that Fills the user_is_temp column of the user table for users created before MW 1...