3 * IBM_DB2-specific updater.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
25 * Class for handling updates to IBM_DB2 databases.
30 class Ibm_db2Updater
extends DatabaseUpdater
{
33 * Get the changes in the DB2 database scheme since MediaWiki 1.14
36 protected function getCoreUpdateList() {
39 array( 'addField', 'site_stats', 'ss_active_users', 'patch-ss_active_users.sql' ),
40 array( 'addField', 'ipblocks', 'ipb_allow_usertalk', 'patch-ipb_allow_usertalk.sql' ),
43 array( 'addTable', 'change_tag', 'patch-change_tag.sql' ),
44 array( 'addTable', 'tag_summary', 'patch-change_tag_summary.sql' ),
45 array( 'addTable', 'valid_tag', 'patch-change_valid_tag.sql' ),
48 array( 'addTable', 'user_properties', 'patch-user_properties.sql' ),
49 array( 'addTable', 'log_search', 'patch-log_search.sql' ),
50 array( 'addField', 'logging', 'log_user_text', 'patch-log_user_text.sql' ),
51 array( 'addTable', 'l10n_cache', 'patch-l10n_cache.sql' ),
52 array( 'addTable', 'external_user', 'patch-external_user.sql' ),
53 array( 'addIndex', 'log_search', 'ls_field_val', 'patch-log_search-rename-index.sql' ),
54 array( 'addIndex', 'change_tag', 'change_tag_rc_tag', 'patch-change_tag-indexes.sql' ),
55 array( 'addField', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ),
58 array( 'addTable', 'iwlinks', 'patch-iwlinks.sql' ),
59 array( 'addField', 'updatelog', 'ul_value', 'patch-ul_value.sql' ),
60 array( 'addField', 'interwiki', 'iw_api', 'patch-iw_api_and_wikiid.sql' ),
61 array( 'addField', 'categorylinks', 'cl_collation', 'patch-categorylinks-better-collation.sql' ),
62 array( 'addTable', 'msg_resource', 'patch-msg_resource.sql' ),
63 array( 'addTable', 'msg_resource_links', 'patch-msg_resource_links.sql' ),
64 array( 'addIndex', 'msg_resource_links', 'uq61_msg_resource_links', 'patch-uq_61_msg_resource_links.sql' ),
65 array( 'addIndex', 'msg_resource', 'uq81_msg_resource', 'patch-uq_81_msg_resource.sql' ),
66 array( 'addTable', 'module_deps', 'patch-module_deps.sql' ),
67 array( 'addIndex', 'module_deps', 'uq96_module_deps', 'patch-uq_96_module_deps.sql' ),
68 array( 'addField', 'interwiki', 'iw_api', 'patch-iw_api-field.sql' ),
69 array( 'addField', 'interwiki', 'iw_wikiid', 'patch-iw_wikiid-field.sql' ),
70 array( 'addField', 'categorylinks', 'cl_sortkey_prefix', 'patch-cl_sortkey_prefix-field.sql' ),
71 array( 'addField', 'categorylinks', 'cl_collation', 'patch-cl_collation-field.sql' ),
72 array( 'addField', 'categorylinks', 'cl_type', 'patch-cl_type-field.sql' ),
75 array( 'doUserNewTalkTimestampNotNull' ),
76 array( 'addIndex', 'user', 'user_email', 'patch-user_email_index.sql' ),
77 array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ),
78 array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ),
79 array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql'),
80 array( 'doRebuildLocalisationCache' ),
83 array( 'addIndex', 'logging', 'type_action', 'patch-logging-type-action-index.sql'),
84 array( 'dropField', 'user', 'user_options', 'patch-drop-user_options.sql' ),
85 array( 'addField', 'revision', 'rev_sha1', 'patch-rev_sha1.sql' ),
86 array( 'addField', 'archive', 'ar_sha1', 'patch-ar_sha1.sql' ),
89 array( 'addTable', 'config', 'patch-config.sql' ),