diff options
author | MarkAHershberger <mah@everybody.org> | 2012-11-21 22:53:24 -0500 |
---|---|---|
committer | MarkAHershberger <mah@everybody.org> | 2012-11-21 22:53:24 -0500 |
commit | 34c9bca6a800f293b79d7127e48f391db7b181e5 (patch) | |
tree | a94331b084e7fdecf4bc805032a17fab9d022b4b /UPGRADE | |
parent | 8d198333d30f8878eed73793e616b042b71f4682 (diff) | |
download | mediawikicore-34c9bca6a800f293b79d7127e48f391db7b181e5.tar.gz mediawikicore-34c9bca6a800f293b79d7127e48f391db7b181e5.zip |
(bug 38110) provide a way to separate out schema changes
Allows update.php to be run when $wgAllowSchemaUpdates = false.
This is useful for non-WMF environments where strict DB permissions
allow database updates (which update.php performs), but no schema
changes (such as adding or dropping tables or indices which update.php
also performs).
It does this by adding the --schema and --noschema flags. Without
either of these flags, update.php will perform exactly as before.
With --noschema, all changes to the table structure or table additions
are skipped. Only data changes are made.
With --schema is used, no schema changes are made to the database, but
the schema changes are saved to a separate SQL file that can be run.
Change-Id: I96b4cfd4c02e9cbf46cc6a0499b87fb3b89020a0
Diffstat (limited to 'UPGRADE')
-rw-r--r-- | UPGRADE | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -51,6 +51,11 @@ deleted file archives, and any custom skins. === Perform the database upgrade === +As of 1.21, it is possible to separate schema changes (i.e. adding, +dropping, or changing tables, fields, or indices) from all other +database changes (e.g. populating fields). If you need this +capability, see "From the command line" below. + ==== From the web ==== If you browse to the web-based installation script (usually at @@ -64,6 +69,12 @@ update.php script to check and update the schema. This will insert missing tables, update existing tables, and move data around as needed. In most cases, this is successful and nothing further needs to be done. +If you need to separate out the schema changes so they can be run +by someone with more privileges, then you can use the --schema option +to produce a text file with the necessary commands. You can use +--schema, --noschema, $wgAllowSchemaUpdates as well as proper database +permissions to enforce this separation. + === Check configuration settings === The names of configuration variables, and their default values and purposes, |