I've been trying to upgrade phabricator (rev=d8739459f6f9d6ebd4ebd02d513533a00420f74a) to the current stable branch.
Here is my workflow,
- Backup current phabricator database
- Restore data to a new database
- Grab stable versions of phabricator, arcanist and libphutil.
- Connect new phab to the new database by setting mysql creds via ./bin/config set
- Run ./bin/storage upgrade
Step 5 fails with:
Applying patch 'phabricator:20141222.maniphestprojtxn.php'... Converting Maniphest project transactions to modern edge transactions... [2015-09-24 00:35:18] EXCEPTION: (InvalidArgumentException) Argument 1 passed to mig20141222_build_edge_data() must be an array, string given, called in /srv/rdio/phabricator/releases/20150923212053/phabricator/resources/sql/autopatches/20141222.maniphestprojtxn.php on line 19 and defined at [<phutil>/src/error/PhutilErrorHandler.php:200] arcanist(head=master, ref.master=9c056c5cc887), phabricator(head=master, ref.master=337990423740), phutil(head=master, ref.master=c72eb747e706) #0 PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phabricator>/resources/sql/autopatches/20141222.maniphestprojtxn.php:36] #1 mig20141222_build_edge_data(string, string) called at [<phabricator>/resources/sql/autopatches/20141222.maniphestprojtxn.php:19] #2 require_once(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:226] #3 PhabricatorStorageManagementAPI::applyPatchPHP(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:191] #4 PhabricatorStorageManagementAPI::applyPatch(PhabricatorStoragePatch) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php:190] #5 PhabricatorStorageManagementUpgradeWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:406] #6 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301] #7 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/sql/manage_storage.php:176]
Looks like it's a change that's made as a part of https://github.com/phacility/phabricator/commits/master/resources/sql/autopatches/20141222.maniphestprojtxn.php
Any ideas on what I'm missing here?