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
F14029713: D13011.id31378.diff
Fri, Nov 8, 8:58 PM
F14028914: D13011.diff
Fri, Nov 8, 5:49 PM
F14028870: D13011.diff
Fri, Nov 8, 5:04 PM
F14010271: D13011.diff
Thu, Oct 31, 6:49 AM
F14002664: D13011.diff
Fri, Oct 25, 9:06 PM
F13986055: D13011.id31584.diff
Mon, Oct 21, 12:19 AM
F13979972: D13011.diff
Sat, Oct 19, 7:40 AM
F13978322: D13011.diff
Oct 18 2024, 10:41 PM
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.