Page MenuHomePhabricator

Change migrations to not rely on "arcanist project" classes
ClosedPublic

Authored by joshuaspence on May 25 2015, 9:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 9:18 PM
Unknown Object (File)
Thu, Apr 11, 7:55 AM
Unknown Object (File)
Thu, Apr 4, 2:27 AM
Unknown Object (File)
Sat, Mar 30, 12:28 PM
Unknown Object (File)
Sat, Mar 30, 5:04 AM
Unknown Object (File)
Mar 20 2024, 8:12 PM
Unknown Object (File)
Feb 21 2024, 10:57 PM
Unknown Object (File)
Feb 11 2024, 7:16 AM
Subscribers

Details

Summary

Ref T7604. Change two migrations to query arcanist project information using queryfx directly to avoid the need for the LiskDAO fields to exist.

Test Plan

Ran the following commands to verify that things weren't majorly broken:

  • ./bin/storage upgrade --apply phabricator:20150503.repositorysymbols.2.php
  • ./bin/storage upgrade --no-quickstart --namespace test

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Change migrations to not rely on "arcanist project" classes.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

Happy to test this, but I'm not really sure how.

epriestley edited edge metadata.

I think 131.migraterevisionquery.php is so old (circa 2012) that we can simply drop support for it (leave a comment pointing at T7604 and delete the migration body). The effect of missing the migration is very small and the number of affected installs is likely 0 (active installs created in 2012 that haven't updated in more than 3 years).

For the other patch, you can partially test it like this:

$ bin/storage upgrade --apply phabricator:20150503.repositorysymbols.2.php

That will re-run; it may not do much, but it will at least catch major query/syntax errors.

You can also re-run all patches in sequence like this:

$ bin/storage upgrade --no-quickstart --namespace test1234

You may want to bin/storage destroy the namespace afterward.

These may not catch everything, but should catch big/obvious stuff, at least.

This revision now requires changes to proceed.May 31 2015, 2:52 PM
joshuaspence edited edge metadata.

Remove 131.migraterevisionquery.php

joshuaspence edited edge metadata.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 1 2015, 1:38 AM
This revision was automatically updated to reflect the committed changes.