(bug 38110) provide a way to separate out schema changes
authorMarkAHershberger <mah@everybody.org>
Thu, 22 Nov 2012 03:53:24 +0000 (22:53 -0500)
committerMarkAHershberger <mah@everybody.org>
Thu, 22 Nov 2012 03:53:24 +0000 (22:53 -0500)
commit34c9bca6a800f293b79d7127e48f391db7b181e5
treea94331b084e7fdecf4bc805032a17fab9d022b4b
parent8d198333d30f8878eed73793e616b042b71f4682
(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
RELEASE-NOTES-1.21
UPGRADE
includes/db/Database.php
includes/db/DatabaseMysql.php
includes/installer/DatabaseUpdater.php
includes/installer/MysqlUpdater.php
maintenance/Maintenance.php
maintenance/populateFilearchiveSha1.php
maintenance/populateRevisionLength.php
maintenance/populateRevisionSha1.php
maintenance/update.php