This repository has been archived by the owner on Feb 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Include Phinx migrations from extensions #318
Comments
@stevenrombauts What about symlinking? Could we symlink the paths for extensions into this path to Phinx can find them there? |
@johanjanssens Phinx has built-in support for multiple paths, so something like this should work: paths:
migrations:
- %%PHINX_CONFIG_DIR%%/install/mysql/migrations
- %%PHINX_CONFIG_DIR%%/app/administrator/components/com_*/resources/install/migrations That will expand to all component directories that have the migrations directory in it. Tested this real quick locally and it works great. No need for any manual setup then. |
@stevenrombauts The above code where should this go? I'm happy to add it so we can get this out the door for 2.0. |
stevenrombauts
pushed a commit
that referenced
this issue
Jun 20, 2017
stevenrombauts
pushed a commit
that referenced
this issue
Jun 20, 2017
@johanjanssens I've updated the code and opened PR #323 for a review. To test this:
|
@allanpilarca Assigning this to you for testing. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Right now we expect all migrations to be in the
install/mysql/migrations
directory. This does not yet include extension migrations.It should be possible to include multiple paths and look for a common directory in every extension, so we can also create migrations files per release. We could read these from the
vendor
directory.The text was updated successfully, but these errors were encountered: