How to create database for new application during schema upgrade


I’ve created new application using Phurl as an example, but attempt to run it’s migration complains that application database is missing.

I haven’t found any code inside Phabricator, except quickstart.sql that would actually create database for new applications.

Anything I’ve forgot to do?

Thank you.


After running ./bin/storage databases I’ve found, that database wasn’t even planned to be created. Debugging it revealed, that \PhabricatorBuiltinPatchList::getOldPatches method must have line like this in it:

'db.appname' => array(),

Question solved.

closed #3