Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs about namespaces for paths #2314

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/en/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ You can also provide multiple migration paths by using an array in your configur
- application/module1/migrations
- application/module2/migrations

Class namespaces may be specified by adding a key to each migration path:

.. code-block:: yaml

paths:
migrations:
App\Module1\Migrations: application/module1/migrations
App\Module2\Migrations: application/module2/migrations



You can also use the ``%%PHINX_CONFIG_DIR%%`` token in your path.

Expand Down Expand Up @@ -139,6 +149,16 @@ You can also use the ``%%PHINX_CONFIG_DIR%%`` token in your path.
paths:
seeds: '%%PHINX_CONFIG_DIR%%/your/relative/path'

Class namespaces may be specified by adding a key to each seed path:

.. code-block:: yaml

paths:
seeds:
App\Module1\Seeds: application/module1/seeds
App\Module2\Seeds: application/module2/seeds


Custom Seeder Base
---------------------

Expand Down
Loading