Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -60,38 +60,6 @@ |
61 | 61 | } |
62 | 62 | } |
63 | 63 | |
64 | | -function add_field( $table, $field, $patch, $fullpath = false ) { |
65 | | - global $wgDatabase; |
66 | | - if ( !$wgDatabase->tableExists( $table ) ) { |
67 | | - wfOut( "...$table table does not exist, skipping new field patch\n" ); |
68 | | - } elseif ( $wgDatabase->fieldExists( $table, $field ) ) { |
69 | | - wfOut( "...have $field field in $table table.\n" ); |
70 | | - } else { |
71 | | - wfOut( "Adding $field field to table $table..." ); |
72 | | - if ( $fullpath ) { |
73 | | - $wgDatabase->sourceFile( $patch ); |
74 | | - } else { |
75 | | - $wgDatabase->sourceFile( archive( $patch ) ); |
76 | | - } |
77 | | - wfOut( "ok\n" ); |
78 | | - } |
79 | | -} |
80 | | - |
81 | | -function add_index( $table, $index, $patch, $fullpath = false ) { |
82 | | - global $wgDatabase; |
83 | | - if ( $wgDatabase->indexExists( $table, $index ) ) { |
84 | | - wfOut( "...$index key already set on $table table.\n" ); |
85 | | - } else { |
86 | | - wfOut( "Adding $index key to table $table... " ); |
87 | | - if ( $fullpath ) { |
88 | | - $wgDatabase->sourceFile( $patch ); |
89 | | - } else { |
90 | | - $wgDatabase->sourceFile( archive( $patch ) ); |
91 | | - } |
92 | | - wfOut( "ok\n" ); |
93 | | - } |
94 | | -} |
95 | | - |
96 | 64 | function drop_index_if_exists( $table, $index, $patch, $fullpath = false ) { |
97 | 65 | global $wgDatabase; |
98 | 66 | if ( $wgDatabase->indexExists( $table, $index ) ) { |
Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | foreach ( $wgExtNewFields as $fieldRecord ) { |
119 | 119 | if ( $fieldRecord[0] != 'user' || $doUser ) { |
120 | 120 | $updates[] = array( |
121 | | - 'add_field', $fieldRecord[0], $fieldRecord[1], |
| 121 | + 'addField', $fieldRecord[0], $fieldRecord[1], |
122 | 122 | $fieldRecord[2], true |
123 | 123 | ); |
124 | 124 | } |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | |
127 | 127 | foreach ( $wgExtNewIndexes as $fieldRecord ) { |
128 | 128 | $updates[] = array( |
129 | | - 'add_index', $fieldRecord[0], $fieldRecord[1], |
| 129 | + 'addIndex', $fieldRecord[0], $fieldRecord[1], |
130 | 130 | $fieldRecord[2], true |
131 | 131 | ); |
132 | 132 | } |
— | — | @@ -151,24 +151,69 @@ |
152 | 152 | protected abstract function getCoreUpdateList(); |
153 | 153 | |
154 | 154 | /** |
| 155 | + * Applies a SQL patch |
| 156 | + * @param $path String Path to the patch file |
| 157 | + * @param $isFullPath Boolean Whether to treat $path as a relative or not |
| 158 | + */ |
| 159 | + protected function applyPatch( $path, $isFullPath = false ) { |
| 160 | + if ( $isFullPath ) { |
| 161 | + $this->db->sourceFile( $path ); |
| 162 | + } else { |
| 163 | + $this->db->sourceFile( archive( $path ) ); |
| 164 | + } |
| 165 | + } |
| 166 | + |
| 167 | + /** |
155 | 168 | * Add a new table to the database |
156 | 169 | * @param $name String Name of the new table |
157 | 170 | * @param $patch String Path to the patch file |
158 | | - * @param $fullpath Boolean Whether to treat $fullPath as a relative or not |
| 171 | + * @param $fullpath Boolean Whether to treat $patch path as a relative or not |
159 | 172 | */ |
160 | 173 | protected function addTable( $name, $patch, $fullpath = false ) { |
161 | 174 | if ( $this->db->tableExists( $name ) ) { |
162 | 175 | wfOut( "...$name table already exists.\n" ); |
163 | 176 | } else { |
164 | 177 | wfOut( "Creating $name table..." ); |
165 | | - if ( $fullpath ) { |
166 | | - $this->db->sourceFile( $patch ); |
167 | | - } else { |
168 | | - $this->db->sourceFile( archive( $patch ) ); |
169 | | - } |
| 178 | + $this->applyPatch( $patch, $fullpath ); |
170 | 179 | wfOut( "ok\n" ); |
171 | 180 | } |
172 | 181 | } |
| 182 | + |
| 183 | + /** |
| 184 | + * Add a new field to an existing table |
| 185 | + * @param $table String Name of the table to modify |
| 186 | + * @param $field String Name of the new field |
| 187 | + * @param $patch String Path to the patch file |
| 188 | + * @param $fullpath Boolean Whether to treat $patch path as a relative or not |
| 189 | + */ |
| 190 | + protected function addField( $table, $field, $patch, $fullpath = false ) { |
| 191 | + if ( !$this->db->tableExists( $table ) ) { |
| 192 | + wfOut( "...$table table does not exist, skipping new field patch\n" ); |
| 193 | + } elseif ( $this->db->fieldExists( $table, $field ) ) { |
| 194 | + wfOut( "...have $field field in $table table.\n" ); |
| 195 | + } else { |
| 196 | + wfOut( "Adding $field field to table $table..." ); |
| 197 | + $this->applyPatch( $patch, $fullpath ); |
| 198 | + wfOut( "ok\n" ); |
| 199 | + } |
| 200 | + } |
| 201 | + |
| 202 | + /** |
| 203 | + * Add a new index to an existing table |
| 204 | + * @param $table String Name of the table to modify |
| 205 | + * @param $index String Name of the new index |
| 206 | + * @param $patch String Path to the patch file |
| 207 | + * @param $fullpath Boolean Whether to treat $patch path as a relative or not |
| 208 | + */ |
| 209 | + function addIndex( $table, $index, $patch, $fullpath = false ) { |
| 210 | + if ( $this->db->indexExists( $table, $index ) ) { |
| 211 | + wfOut( "...$index key already set on $table table.\n" ); |
| 212 | + } else { |
| 213 | + wfOut( "Adding $index key to table $table... " ); |
| 214 | + $this->applyPatch( $patch, $fullpath ); |
| 215 | + wfOut( "ok\n" ); |
| 216 | + } |
| 217 | + } |
173 | 218 | } |
174 | 219 | |
175 | 220 | class OracleUpdater extends DatabaseUpdater { |
Index: trunk/phase3/includes/installer/MysqlUpdater.php |
— | — | @@ -11,124 +11,124 @@ |
12 | 12 | protected function getCoreUpdateList() { |
13 | 13 | return array( |
14 | 14 | // 1.2 |
15 | | - array( 'add_field', 'ipblocks', 'ipb_id', 'patch-ipblocks.sql' ), |
16 | | - array( 'add_field', 'ipblocks', 'ipb_expiry', 'patch-ipb_expiry.sql' ), |
| 15 | + array( 'addField', 'ipblocks', 'ipb_id', 'patch-ipblocks.sql' ), |
| 16 | + array( 'addField', 'ipblocks', 'ipb_expiry', 'patch-ipb_expiry.sql' ), |
17 | 17 | array( 'do_interwiki_update' ), |
18 | 18 | array( 'do_index_update' ), |
19 | 19 | array( 'addTable', 'hitcounter', 'patch-hitcounter.sql' ), |
20 | | - array( 'add_field', 'recentchanges', 'rc_type', 'patch-rc_type.sql' ), |
| 20 | + array( 'addField', 'recentchanges', 'rc_type', 'patch-rc_type.sql' ), |
21 | 21 | |
22 | 22 | // 1.3 |
23 | | - array( 'add_field', 'user', 'user_real_name', 'patch-user-realname.sql' ), |
| 23 | + array( 'addField', 'user', 'user_real_name', 'patch-user-realname.sql' ), |
24 | 24 | array( 'addTable', 'querycache', 'patch-querycache.sql' ), |
25 | 25 | array( 'addTable', 'objectcache', 'patch-objectcache.sql' ), |
26 | 26 | array( 'addTable', 'categorylinks', 'patch-categorylinks.sql' ), |
27 | 27 | array( 'do_old_links_update' ), |
28 | 28 | array( 'fix_ancient_imagelinks' ), |
29 | | - array( 'add_field', 'recentchanges', 'rc_ip', 'patch-rc_ip.sql' ), |
| 29 | + array( 'addField', 'recentchanges', 'rc_ip', 'patch-rc_ip.sql' ), |
30 | 30 | |
31 | 31 | // 1.4 |
32 | 32 | array( 'do_image_name_unique_update' ), |
33 | | - array( 'add_field', 'recentchanges', 'rc_id', 'patch-rc_id.sql' ), |
34 | | - array( 'add_field', 'recentchanges', 'rc_patrolled', 'patch-rc-patrol.sql' ), |
| 33 | + array( 'addField', 'recentchanges', 'rc_id', 'patch-rc_id.sql' ), |
| 34 | + array( 'addField', 'recentchanges', 'rc_patrolled', 'patch-rc-patrol.sql' ), |
35 | 35 | array( 'addTable', 'logging', 'patch-logging.sql' ), |
36 | | - array( 'add_field', 'user', 'user_token', 'patch-user_token.sql' ), |
| 36 | + array( 'addField', 'user', 'user_token', 'patch-user_token.sql' ), |
37 | 37 | array( 'do_watchlist_update' ), |
38 | 38 | array( 'do_user_update' ), |
39 | 39 | |
40 | 40 | // 1.5 |
41 | 41 | array( 'do_schema_restructuring' ), |
42 | | - array( 'add_field', 'logging', 'log_params', 'patch-log_params.sql' ), |
| 42 | + array( 'addField', 'logging', 'log_params', 'patch-log_params.sql' ), |
43 | 43 | array( 'check_bin', 'logging', 'log_title', 'patch-logging-title.sql', ), |
44 | | - array( 'add_field', 'archive', 'ar_rev_id', 'patch-archive-rev_id.sql' ), |
45 | | - array( 'add_field', 'page', 'page_len', 'patch-page_len.sql' ), |
| 44 | + array( 'addField', 'archive', 'ar_rev_id', 'patch-archive-rev_id.sql' ), |
| 45 | + array( 'addField', 'page', 'page_len', 'patch-page_len.sql' ), |
46 | 46 | array( 'do_inverse_timestamp' ), |
47 | 47 | array( 'do_text_id' ), |
48 | | - array( 'add_field', 'revision', 'rev_deleted', 'patch-rev_deleted.sql' ), |
49 | | - array( 'add_field', 'image', 'img_width', 'patch-img_width.sql' ), |
50 | | - array( 'add_field', 'image', 'img_metadata', 'patch-img_metadata.sql' ), |
51 | | - array( 'add_field', 'user', 'user_email_token', 'patch-user_email_token.sql' ), |
52 | | - array( 'add_field', 'archive', 'ar_text_id', 'patch-archive-text_id.sql' ), |
| 48 | + array( 'addField', 'revision', 'rev_deleted', 'patch-rev_deleted.sql' ), |
| 49 | + array( 'addField', 'image', 'img_width', 'patch-img_width.sql' ), |
| 50 | + array( 'addField', 'image', 'img_metadata', 'patch-img_metadata.sql' ), |
| 51 | + array( 'addField', 'user', 'user_email_token', 'patch-user_email_token.sql' ), |
| 52 | + array( 'addField', 'archive', 'ar_text_id', 'patch-archive-text_id.sql' ), |
53 | 53 | array( 'doNamespaceSize' ), |
54 | | - array( 'add_field', 'image', 'img_media_type', 'patch-img_media_type.sql' ), |
| 54 | + array( 'addField', 'image', 'img_media_type', 'patch-img_media_type.sql' ), |
55 | 55 | array( 'do_pagelinks_update' ), |
56 | 56 | array( 'do_drop_img_type' ), |
57 | 57 | array( 'do_user_unique_update' ), |
58 | 58 | array( 'do_user_groups_update' ), |
59 | | - array( 'add_field', 'site_stats', 'ss_total_pages', 'patch-ss_total_articles.sql' ), |
| 59 | + array( 'addField', 'site_stats', 'ss_total_pages', 'patch-ss_total_articles.sql' ), |
60 | 60 | array( 'addTable', 'user_newtalk', 'patch-usernewtalk2.sql' ), |
61 | 61 | array( 'addTable', 'transcache', 'patch-transcache.sql' ), |
62 | | - array( 'add_field', 'interwiki', 'iw_trans', 'patch-interwiki-trans.sql' ), |
| 62 | + array( 'addField', 'interwiki', 'iw_trans', 'patch-interwiki-trans.sql' ), |
63 | 63 | array( 'addTable', 'trackbacks', 'patch-trackbacks.sql' ), |
64 | 64 | |
65 | 65 | // 1.6 |
66 | 66 | array( 'do_watchlist_null' ), |
67 | 67 | array( 'do_logging_timestamp_index' ), |
68 | | - array( 'add_field', 'ipblocks', 'ipb_range_start', 'patch-ipb_range_start.sql' ), |
| 68 | + array( 'addField', 'ipblocks', 'ipb_range_start', 'patch-ipb_range_start.sql' ), |
69 | 69 | array( 'do_page_random_update' ), |
70 | | - array( 'add_field', 'user', 'user_registration', 'patch-user_registration.sql' ), |
| 70 | + array( 'addField', 'user', 'user_registration', 'patch-user_registration.sql' ), |
71 | 71 | array( 'do_templatelinks_update' ), |
72 | 72 | array( 'addTable', 'externallinks', 'patch-externallinks.sql' ), |
73 | 73 | array( 'addTable', 'job', 'patch-job.sql' ), |
74 | | - array( 'add_field', 'site_stats', 'ss_images', 'patch-ss_images.sql' ), |
| 74 | + array( 'addField', 'site_stats', 'ss_images', 'patch-ss_images.sql' ), |
75 | 75 | array( 'addTable', 'langlinks', 'patch-langlinks.sql' ), |
76 | 76 | array( 'addTable', 'querycache_info', 'patch-querycacheinfo.sql' ), |
77 | 77 | array( 'addTable', 'filearchive', 'patch-filearchive.sql' ), |
78 | | - array( 'add_field', 'ipblocks', 'ipb_anon_only', 'patch-ipb_anon_only.sql' ), |
| 78 | + array( 'addField', 'ipblocks', 'ipb_anon_only', 'patch-ipb_anon_only.sql' ), |
79 | 79 | array( 'do_rc_indices_update' ), |
80 | 80 | |
81 | 81 | // 1.9 |
82 | | - array( 'add_field', 'user', 'user_newpass_time', 'patch-user_newpass_time.sql' ), |
| 82 | + array( 'addField', 'user', 'user_newpass_time', 'patch-user_newpass_time.sql' ), |
83 | 83 | array( 'addTable', 'redirect', 'patch-redirect.sql' ), |
84 | 84 | array( 'addTable', 'querycachetwo', 'patch-querycachetwo.sql' ), |
85 | | - array( 'add_field', 'ipblocks', 'ipb_enable_autoblock', 'patch-ipb_optional_autoblock.sql' ), |
| 85 | + array( 'addField', 'ipblocks', 'ipb_enable_autoblock', 'patch-ipb_optional_autoblock.sql' ), |
86 | 86 | array( 'do_backlinking_indices_update' ), |
87 | | - array( 'add_field', 'recentchanges', 'rc_old_len', 'patch-rc_len.sql' ), |
88 | | - array( 'add_field', 'user', 'user_editcount', 'patch-user_editcount.sql' ), |
| 87 | + array( 'addField', 'recentchanges', 'rc_old_len', 'patch-rc_len.sql' ), |
| 88 | + array( 'addField', 'user', 'user_editcount', 'patch-user_editcount.sql' ), |
89 | 89 | |
90 | 90 | // 1.10 |
91 | 91 | array( 'do_restrictions_update' ), |
92 | | - array( 'add_field', 'logging', 'log_id', 'patch-log_id.sql' ), |
93 | | - array( 'add_field', 'revision', 'rev_parent_id', 'patch-rev_parent_id.sql' ), |
94 | | - array( 'add_field', 'page_restrictions', 'pr_id', 'patch-page_restrictions_sortkey.sql' ), |
95 | | - array( 'add_field', 'revision', 'rev_len', 'patch-rev_len.sql' ), |
96 | | - array( 'add_field', 'recentchanges', 'rc_deleted', 'patch-rc_deleted.sql' ), |
97 | | - array( 'add_field', 'logging', 'log_deleted', 'patch-log_deleted.sql' ), |
98 | | - array( 'add_field', 'archive', 'ar_deleted', 'patch-ar_deleted.sql' ), |
99 | | - array( 'add_field', 'ipblocks', 'ipb_deleted', 'patch-ipb_deleted.sql' ), |
100 | | - array( 'add_field', 'filearchive', 'fa_deleted', 'patch-fa_deleted.sql' ), |
101 | | - array( 'add_field', 'archive', 'ar_len', 'patch-ar_len.sql' ), |
| 92 | + array( 'addField', 'logging', 'log_id', 'patch-log_id.sql' ), |
| 93 | + array( 'addField', 'revision', 'rev_parent_id', 'patch-rev_parent_id.sql' ), |
| 94 | + array( 'addField', 'page_restrictions', 'pr_id', 'patch-page_restrictions_sortkey.sql' ), |
| 95 | + array( 'addField', 'revision', 'rev_len', 'patch-rev_len.sql' ), |
| 96 | + array( 'addField', 'recentchanges', 'rc_deleted', 'patch-rc_deleted.sql' ), |
| 97 | + array( 'addField', 'logging', 'log_deleted', 'patch-log_deleted.sql' ), |
| 98 | + array( 'addField', 'archive', 'ar_deleted', 'patch-ar_deleted.sql' ), |
| 99 | + array( 'addField', 'ipblocks', 'ipb_deleted', 'patch-ipb_deleted.sql' ), |
| 100 | + array( 'addField', 'filearchive', 'fa_deleted', 'patch-fa_deleted.sql' ), |
| 101 | + array( 'addField', 'archive', 'ar_len', 'patch-ar_len.sql' ), |
102 | 102 | |
103 | 103 | // 1.11 |
104 | | - array( 'add_field', 'ipblocks', 'ipb_block_email', 'patch-ipb_emailban.sql' ), |
| 104 | + array( 'addField', 'ipblocks', 'ipb_block_email', 'patch-ipb_emailban.sql' ), |
105 | 105 | array( 'do_categorylinks_indices_update' ), |
106 | | - array( 'add_field', 'oldimage', 'oi_metadata', 'patch-oi_metadata.sql' ), |
| 106 | + array( 'addField', 'oldimage', 'oi_metadata', 'patch-oi_metadata.sql' ), |
107 | 107 | array( 'do_archive_user_index' ), |
108 | 108 | array( 'do_image_user_index' ), |
109 | 109 | array( 'do_oldimage_user_index' ), |
110 | | - array( 'add_field', 'archive', 'ar_page_id', 'patch-archive-page_id.sql' ), |
111 | | - array( 'add_field', 'image', 'img_sha1', 'patch-img_sha1.sql' ), |
| 110 | + array( 'addField', 'archive', 'ar_page_id', 'patch-archive-page_id.sql' ), |
| 111 | + array( 'addField', 'image', 'img_sha1', 'patch-img_sha1.sql' ), |
112 | 112 | |
113 | 113 | // 1.12 |
114 | 114 | array( 'addTable', 'protected_titles', 'patch-protected_titles.sql' ), |
115 | 115 | |
116 | 116 | // 1.13 |
117 | | - array( 'add_field', 'ipblocks', 'ipb_by_text', 'patch-ipb_by_text.sql' ), |
| 117 | + array( 'addField', 'ipblocks', 'ipb_by_text', 'patch-ipb_by_text.sql' ), |
118 | 118 | array( 'addTable', 'page_props', 'patch-page_props.sql' ), |
119 | 119 | array( 'addTable', 'updatelog', 'patch-updatelog.sql' ), |
120 | 120 | array( 'addTable', 'category', 'patch-category.sql' ), |
121 | 121 | array( 'do_category_population' ), |
122 | | - array( 'add_field', 'archive', 'ar_parent_id', 'patch-ar_parent_id.sql' ), |
123 | | - array( 'add_field', 'user_newtalk', 'user_last_timestamp', 'patch-user_last_timestamp.sql' ), |
| 122 | + array( 'addField', 'archive', 'ar_parent_id', 'patch-ar_parent_id.sql' ), |
| 123 | + array( 'addField', 'user_newtalk', 'user_last_timestamp', 'patch-user_last_timestamp.sql' ), |
124 | 124 | array( 'do_populate_parent_id' ), |
125 | 125 | array( 'check_bin', 'protected_titles', 'pt_title', 'patch-pt_title-encoding.sql', ), |
126 | 126 | array( 'maybe_do_profiling_memory_update' ), |
127 | 127 | array( 'do_filearchive_indices_update' ), |
128 | 128 | |
129 | 129 | // 1.14 |
130 | | - array( 'add_field', 'site_stats', 'ss_active_users', 'patch-ss_active_users.sql' ), |
| 130 | + array( 'addField', 'site_stats', 'ss_active_users', 'patch-ss_active_users.sql' ), |
131 | 131 | array( 'do_active_users_init' ), |
132 | | - array( 'add_field', 'ipblocks', 'ipb_allow_usertalk', 'patch-ipb_allow_usertalk.sql' ), |
| 132 | + array( 'addField', 'ipblocks', 'ipb_allow_usertalk', 'patch-ipb_allow_usertalk.sql' ), |
133 | 133 | |
134 | 134 | // 1.15 |
135 | 135 | array( 'do_unique_pl_tl_il' ), |
— | — | @@ -140,12 +140,12 @@ |
141 | 141 | array( 'addTable', 'user_properties', 'patch-user_properties.sql' ), |
142 | 142 | array( 'addTable', 'log_search', 'patch-log_search.sql' ), |
143 | 143 | array( 'do_log_search_population' ), |
144 | | - array( 'add_field', 'logging', 'log_user_text', 'patch-log_user_text.sql' ), |
| 144 | + array( 'addField', 'logging', 'log_user_text', 'patch-log_user_text.sql' ), |
145 | 145 | array( 'addTable', 'l10n_cache', 'patch-l10n_cache.sql' ), |
146 | 146 | array( 'addTable', 'external_user', 'patch-external_user.sql' ), |
147 | | - array( 'add_index', 'log_search', 'ls_field_val', 'patch-log_search-rename-index.sql' ), |
148 | | - array( 'add_index', 'change_tag', 'change_tag_rc_tag', 'patch-change_tag-indexes.sql' ), |
149 | | - array( 'add_field', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ), |
| 147 | + array( 'addIndex', 'log_search', 'ls_field_val', 'patch-log_search-rename-index.sql' ), |
| 148 | + array( 'addIndex', 'change_tag', 'change_tag_rc_tag', 'patch-change_tag-indexes.sql' ), |
| 149 | + array( 'addField', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ), |
150 | 150 | array( 'do_update_transcache_field' ), |
151 | 151 | array( 'rename_eu_wiki_id' ), |
152 | 152 | array( 'do_update_mime_minor_field' ), |
— | — | @@ -153,12 +153,12 @@ |
154 | 154 | |
155 | 155 | // 1.17 |
156 | 156 | array( 'addTable', 'iwlinks', 'patch-iwlinks.sql' ), |
157 | | - array( 'add_index', 'iwlinks', 'iwl_prefix_title_from', 'patch-rename-iwl_prefix.sql' ), |
158 | | - array( 'add_field', 'updatelog', 'ul_value', 'patch-ul_value.sql' ), |
159 | | - array( 'add_field', 'interwiki', 'iw_api', 'patch-iw_api_and_wikiid.sql' ), |
| 157 | + array( 'addIndex', 'iwlinks', 'iwl_prefix_title_from', 'patch-rename-iwl_prefix.sql' ), |
| 158 | + array( 'addField', 'updatelog', 'ul_value', 'patch-ul_value.sql' ), |
| 159 | + array( 'addField', 'interwiki', 'iw_api', 'patch-iw_api_and_wikiid.sql' ), |
160 | 160 | array( 'drop_index_if_exists', 'iwlinks', 'iwl_prefix', 'patch-kill-iwl_prefix.sql' ), |
161 | 161 | array( 'drop_index_if_exists', 'iwlinks', 'iwl_prefix_from_title', 'patch-kill-iwl_pft.sql' ), |
162 | | - array( 'add_field', 'categorylinks', 'cl_collation', 'patch-categorylinks-better-collation.sql' ), |
| 162 | + array( 'addField', 'categorylinks', 'cl_collation', 'patch-categorylinks-better-collation.sql' ), |
163 | 163 | array( 'do_collation_update' ), |
164 | 164 | ); |
165 | 165 | } |
Index: trunk/phase3/includes/installer/SqliteUpdater.php |
— | — | @@ -11,9 +11,9 @@ |
12 | 12 | protected function getCoreUpdateList() { |
13 | 13 | return array( |
14 | 14 | // 1.14 |
15 | | - array( 'add_field', 'site_stats', 'ss_active_users', 'patch-ss_active_users.sql' ), |
| 15 | + array( 'addField', 'site_stats', 'ss_active_users', 'patch-ss_active_users.sql' ), |
16 | 16 | array( 'do_active_users_init' ), |
17 | | - array( 'add_field', 'ipblocks', 'ipb_allow_usertalk', 'patch-ipb_allow_usertalk.sql' ), |
| 17 | + array( 'addField', 'ipblocks', 'ipb_allow_usertalk', 'patch-ipb_allow_usertalk.sql' ), |
18 | 18 | array( 'sqlite_initial_indexes' ), |
19 | 19 | |
20 | 20 | // 1.15 |
— | — | @@ -25,20 +25,20 @@ |
26 | 26 | array( 'addTable', 'user_properties', 'patch-user_properties.sql' ), |
27 | 27 | array( 'addTable', 'log_search', 'patch-log_search.sql' ), |
28 | 28 | array( 'do_log_search_population' ), |
29 | | - array( 'add_field', 'logging', 'log_user_text', 'patch-log_user_text.sql' ), |
| 29 | + array( 'addField', 'logging', 'log_user_text', 'patch-log_user_text.sql' ), |
30 | 30 | array( 'addTable', 'l10n_cache', 'patch-l10n_cache.sql' ), |
31 | 31 | array( 'addTable', 'external_user', 'patch-external_user.sql' ), |
32 | | - array( 'add_index', 'log_search', 'ls_field_val', 'patch-log_search-rename-index.sql' ), |
33 | | - array( 'add_index', 'change_tag', 'change_tag_rc_tag', 'patch-change_tag-indexes.sql' ), |
34 | | - array( 'add_field', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ), |
| 32 | + array( 'addIndex', 'log_search', 'ls_field_val', 'patch-log_search-rename-index.sql' ), |
| 33 | + array( 'addIndex', 'change_tag', 'change_tag_rc_tag', 'patch-change_tag-indexes.sql' ), |
| 34 | + array( 'addField', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ), |
35 | 35 | array( 'do_update_transcache_field' ), |
36 | 36 | array( 'sqlite_setup_searchindex' ), |
37 | 37 | |
38 | 38 | // 1.17 |
39 | 39 | array( 'addTable', 'iwlinks', 'patch-iwlinks.sql' ), |
40 | | - array( 'add_index', 'iwlinks', 'iwl_prefix_title_from', 'patch-rename-iwl_prefix.sql' ), |
41 | | - array( 'add_field', 'updatelog', 'ul_value', 'patch-ul_value.sql' ), |
42 | | - array( 'add_field', 'interwiki', 'iw_api', 'patch-iw_api_and_wikiid.sql' ), |
| 40 | + array( 'addIndex', 'iwlinks', 'iwl_prefix_title_from', 'patch-rename-iwl_prefix.sql' ), |
| 41 | + array( 'addField', 'updatelog', 'ul_value', 'patch-ul_value.sql' ), |
| 42 | + array( 'addField', 'interwiki', 'iw_api', 'patch-iw_api_and_wikiid.sql' ), |
43 | 43 | array( 'drop_index_if_exists', 'iwlinks', 'iwl_prefix', 'patch-kill-iwl_prefix.sql' ), |
44 | 44 | array( 'drop_index_if_exists', 'iwlinks', 'iwl_prefix_from_title', 'patch-kill-iwl_pft.sql' ), |
45 | 45 | ); |