1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00
phorge-phorge/src/infrastructure
epriestley d32c09de41 Simplify adding new database patches
Summary:
Currently, to add new migration patches you need to:

  - Add a file to `resources/sql/patches/`; then
  - add an entry to `src/infrastructure/storage/blahblah/BlahBlahBlah.php`.

The second step isn't actually necessary, and we've been using this system for a long time without any issues arising.

Instead of requiring manual adjustments to the patch list, infer the patch specifications from the files on disk so you don't need to do step 2.

Also, simplify the existing data, which can //mostly// be derived from patch names. There are a few exceptions/errors, noted inline, which are preserved for compatibility.

Test Plan:
  - For the new genration of `name` and `type`, I added code to check that the old and new values were the same before converting. This caught the two inline exceptions ("emailtableport", "drydockresouces").
  - Added new patches to `autopatches/` and ran `bin/storage status` to verify they got picked up correctly.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7894
2014-01-06 12:17:03 -08:00
..
__tests__ In unit test environments, install all applications 2013-05-16 12:25:26 -07:00
celerity Serve celerity resources from multiple maps 2014-01-02 11:59:45 -08:00
customfield PHUIPropertyListView 2013-10-11 07:53:56 -07:00
daemon Modernize Drydock CLI management of task execution 2013-12-27 13:15:12 -08:00
diff Replace some hsprintf() with phutil_tag() and phutil_tag_div() Depends on D7545. 2013-11-09 10:48:19 -08:00
edges Allow repositories to be associated with projects 2014-01-03 12:24:09 -08:00
env Put PATH in $_ENV after we adjust it so ExecFuture/etc pick it up 2013-11-27 21:03:00 -08:00
events Make event-triggered actions more aware of application access 2013-10-21 17:00:50 -07:00
internationalization Show an "approval queue" item on the home page for admins, and sort out menu item visibility 2013-11-13 11:24:38 -08:00
javelin Decentralize phtize 2013-11-04 11:38:28 -08:00
lint Move Celerity gradually toward multiple source support 2014-01-01 07:46:18 -08:00
log Add an SSH access log 2013-12-05 17:00:48 -08:00
management Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
markup Enable figlet to render text using custom fonts 2013-12-22 08:45:51 -08:00
query Fix an error in the PolicyFilter algorithm 2013-12-05 17:00:53 -08:00
ssh Fix an issue where SSH workflows would execute immediately 2013-12-27 15:18:03 -08:00
storage Simplify adding new database patches 2014-01-06 12:17:03 -08:00
testing Implement an approval queue 2013-11-13 11:24:56 -08:00
time Consolidate some datetime code and add unit tests 2013-06-03 12:58:11 -07:00
util Implementation of VCS passwords against user. 2013-11-01 08:34:11 -07:00
PhabricatorEditor.php Use ManiphestTaskQuery in nearly all interfaces 2013-09-25 13:44:14 -07:00