Homec4science

Add dry-run, max version options to upgrade_schema.php script

Authored by Nick Harper <nharper@fb.com> on Mar 2 2012, 20:09.

Description

Add dry-run, max version options to upgrade_schema.php script

Summary:

  1. Dry run option allows you to run the script to see what patches would get

applied (without actually applying them).

  1. Max version allows you to do a partial upgrade.

Task ID: #

Blame Rev:

Test Plan:
ran a dry run twice (to make sure it didn't do anything) and no max version
ran with a dry run and max version to check max version logic works correctly
ran with just a max version, and only patches up to that point got applied

Revert Plan:

Tags:

Reviewers: epriestley, btrahan, jungejason

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1758

Details

Committed
Nick Harper <nharper@fb.com>Mar 2 2012, 20:23
Pushed
aubortJan 31 2017, 17:16
Parents
rPH974efd6d65a5: Minor, remove metamta reference from update script.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Harper <nharper@fb.com> committed rPHb5897ec9c071: Add dry-run, max version options to upgrade_schema.php script (authored by Nick Harper <nharper@fb.com>).Mar 2 2012, 20:23