r87491 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87490‎ | r87491 | r87492 >
Date:10:37, 5 May 2011
Author:tstarling
Status:ok
Tags:
Comment:
UPGRADE updates:
* $wgDBadminuser is no longer required
* $wgUpgradeKey is no longer required
* The installer has moved to /mw-config
* You can't change the encoding any more so that's not a concern
* Moved the 1.16 info to its own section
* Cleaned up heading consistency and levels so that it looks nice in the table of contents in the new installer
* Removed duplicate backup section
Modified paths:
  • /trunk/phase3/UPGRADE (modified) (history)

Diff [purge]

Index: trunk/phase3/UPGRADE
@@ -29,7 +29,7 @@
3030 not fail, leaving the database in an inconsistent state.
3131
3232 http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki provides an overview of
33 -the upgrade process. You should also refer to the documentation for your
 33+the backup process. You should also refer to the documentation for your
3434 database management system for information on backing up a database, and to
3535 your operating system documentation for information on making copies of files.
3636
@@ -51,22 +51,12 @@
5252
5353 === Perform the database upgrade ===
5454
55 -You will need to have $wgDBadminuser and $wgDBadminpassword set in your
56 -LocalSettings.php, see there for more info.
57 -
5855 ==== From the web ====
5956
60 -You will need to set $wgUpgradeKey in your LocalSettings.php in order to use
61 -the updater.
 57+If you browse to the web-based installation script (usually at
 58+/mw-config/index.php) from your wiki installation you can follow the script and
 59+upgrade your database in place.
6260
63 -If you browse to the web-based installation script (usually at /config/index.php)
64 -from your wiki installation you can follow the script and upgrade your database
65 -in place.
66 -
67 -You may change some settings during the install, but be very careful!
68 -Changing the encoding in particular will generally leave you with a
69 -lot of corrupt pages, particularly if your wiki is not in English.
70 -
7161 ==== From the command line ====
7262
7363 From the command line, browse to the "maintenance" directory and run the
@@ -74,14 +64,6 @@
7565 tables, update existing tables, and move data around as needed. In most cases,
7666 this is successful and nothing further needs to be done.
7767
78 -If you have a Chinese or Japanese wiki ($wgLanguageCode is set to one
79 -of "zh", "ja", or "yue") and you are using MySQL fulltext search, you
80 -will probably want to update the search index.
81 -
82 -In the "maintenance" directory, run the updateDoubleWidthSearch.php
83 -script. This will update the searchindex table for those pages that
84 -contain double-byte latin characters.
85 -
8668 === Check configuration settings ===
8769
8870 The names of configuration variables, and their default values and purposes,
@@ -92,6 +74,8 @@
9375
9476 === Check installed extensions ===
9577
 78+Extensions usually need to be upgraded at the same time as the MediaWiki core.
 79+
9680 In MediaWiki 1.14 some extensions are migrated into the core. Please see the
9781 HISTORY section "Migrated extensions" and disable these extensions in your
9882 LocalSettings.php
@@ -105,8 +89,18 @@
10690
10791 You should also test any extensions, and upgrade these if necessary.
10892
109 -== Upgrading from 1.8 wikis ==
 93+== Upgrading from 1.16 or earlier ==
11094
 95+If you have a Chinese or Japanese wiki ($wgLanguageCode is set to one
 96+of "zh", "ja", or "yue") and you are using MySQL fulltext search, you
 97+will probably want to update the search index.
 98+
 99+In the "maintenance" directory, run the updateDoubleWidthSearch.php
 100+script. This will update the searchindex table for those pages that
 101+contain double-byte latin characters.
 102+
 103+== Upgrading from 1.8 or earlier ==
 104+
111105 MediaWiki 1.9 and later no longer keep default localized message text
112106 in the database; 'MediaWiki:'-namespace pages that do not exist in the
113107 database are simply transparently filled-in on demand.
@@ -121,17 +115,17 @@
122116
123117 See RELEASE-NOTES for more details about new and changed options.
124118
125 -== Upgrading from 1.7 wikis ==
 119+== Upgrading from 1.7 or earlier ==
126120
127121 $wgDefaultUserOptions now contains all the defaults, not only overrides.
128122 If you're setting this as a complete array(), you may need to change it
129123 to set only specific items as recommended in DefaultSettings.php.
130124
131 -== Upgrading from 1.6 wikis ==
 125+== Upgrading from 1.6 or earlier ==
132126
133127 $wgLocalTZoffset was in hours, it is now using minutes.
134128
135 -== Upgrading from pre-1.5 wikis ==
 129+== Upgrading from 1.5 or earlier ==
136130
137131 Major changes have been made to the schema from 1.4.x. The updater
138132 has not been fully tested for all conditions, and might well break.
@@ -187,33 +181,8 @@
188182 should be replaced with:
189183 $wgMainCacheType = CACHE_MEMCACHED;
190184
191 -== Backups! ==
 185+== Upgrading from 1.4.2 or earlier ==
192186
193 -To upgrade an existing MediaWiki installation, first BACK UP YOUR WIKI!
194 -If something goes wrong, you want to be able to start again.
195 -
196 -Your image files, configuration, etc can simply be copied or archived as
197 -you would any other files. (Make sure that the contents of your
198 -LocalSettings.php are not accidentally made public, as this contains
199 -a database password.)
200 -
201 -To back up the database, use the tools provided by your service provider
202 -(if applicable) or the standard mysqldump or pg_dump programs.
203 -
204 -For general help on mysqldump:
205 -http://dev.mysql.com/doc/mysql/en/mysqldump.html
206 -
207 -WARNING: If using MySQL 4.1.x, mysqldump's charset conversion may in
208 -some cases damage data in your wiki. If necessary, set the charset
209 -option to 'latin1' to avoid the conversion.
210 -
211 -For general help on pg_dump:
212 -http://www.postgresql.org/docs/current/static/app-pgdump.html
213 -
214 -== Caveats ==
215 -
216 -=== Upgrading from 1.4.2 or earlier ===
217 -
218187 1.4.3 has added new fields to the sitestats table. These fields are
219188 optional and help to speed Special:Statistics on large sites. If you
220189 choose not to run the database upgrades, everything will continue to
@@ -224,7 +193,7 @@
225194 maintenance/archives/patch-ss_total_articles.sql
226195
227196
228 -=== Upgrading from 1.4rc1 or earlier betas ===
 197+== Upgrading from 1.4rc1 or earlier betas ==
229198
230199 The logging table has been altered from 1.4beta4 to 1.4beta5
231200 and again in 1.4.0 final. Copy in the new files and use the web
@@ -237,7 +206,7 @@
238207 maintenance/archives/patch-logging-title.sql
239208
240209
241 -=== Upgrading from 1.3.x ===
 210+== Upgrading from 1.3 or earlier ==
242211
243212 This should generally go smoothly.
244213
@@ -280,7 +249,7 @@
281250 customers to attacks.
282251
283252
284 -=== Upgrading from 1.2.x ===
 253+== Upgrading from 1.2 or earlier ==
285254
286255 If you've been using the MediaWiki: namespace for custom page templates,
287256 note that things are a little different. The Template: namespace has been
@@ -300,7 +269,7 @@
301270 and restore it. Sorry.
302271
303272
304 -=== Upgrading from 1.1.x or earlier ===
 273+== Upgrading from 1.1 or earlier ==
305274
306275 This is less thoroughly tested, but should work.
307276
@@ -314,7 +283,7 @@
315284 with remaining updates.
316285
317286
318 -=== Upgrading from UseModWiki or old "phase 2" Wikipedia code ===
 287+== Upgrading from UseModWiki or old "phase 2" Wikipedia code ==
319288
320289 There is a semi-maintained UseModWiki to MediaWiki conversion script at
321290 maintenance/importUseModWiki.php; it may require tweaking and customization
@@ -325,3 +294,5 @@
326295 database.
327296
328297 You will have to rebuild the links tables etc after importing.
 298+
 299+

Follow-up revisions

RevisionCommit summaryAuthorDate
r87493MFT r87491tstarling10:41, 5 May 2011

Status & tagging log