Merge "Fixed dependencies for jquery.collapsibleTabs"
[lhc/web/wiklou.git] / includes / installer / Ibm_db2Updater.php
1 <?php
2 /**
3 * IBM_DB2-specific updater.
4 *
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.
9 *
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.
14 *
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
19 *
20 * @file
21 * @ingroup Deployment
22 */
23
24 /**
25 * Class for handling updates to IBM_DB2 databases.
26 *
27 * @ingroup Deployment
28 * @since 1.17
29 */
30 class Ibm_db2Updater extends DatabaseUpdater {
31
32 /**
33 * Get the changes in the DB2 database scheme since MediaWiki 1.14
34 * @return array
35 */
36 protected function getCoreUpdateList() {
37 return array(
38 // 1.14
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' ),
41
42 // 1.15
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' ),
46
47 // 1.16
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' ),
56
57 // 1.17
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' ),
73
74 //1.18
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' ),
81
82 // 1.19
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' ),
87
88 // 1.20
89 array( 'addTable', 'config', 'patch-config.sql' ),
90
91 // 1.21
92 array( 'addField', 'revision', 'rev_content_format', 'patch-revision-rev_content_format.sql' ),
93 array( 'addField', 'revision', 'rev_content_model', 'patch-revision-rev_content_model.sql' ),
94 array( 'addField', 'archive', 'ar_content_format', 'patch-archive-ar_content_format.sql' ),
95 array( 'addField', 'archive', 'ar_content_model', 'patch-archive-ar_content_model.sql' ),
96 array( 'addField', 'page', 'page_content_model', 'patch-page-page_content_model.sql' ),
97 );
98 }
99 }