Skip to content

Commit

Permalink
Add docs about namespaces for paths (#2314)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Peveler <[email protected]>
  • Loading branch information
matheusab and MasterOdin authored Nov 29, 2024
1 parent 184b920 commit ba6b485
Showing 1 changed file with 20 additions and 0 deletions.
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

0 comments on commit ba6b485

Please sign in to comment.