From 4bb53e56c6c249c4c263f597e3424d6698b92d3f Mon Sep 17 00:00:00 2001 From: "Matheus A. Barbosa" Date: Fri, 27 Sep 2024 14:17:31 -0300 Subject: [PATCH 1/2] Add docs about migration paths namespaces --- docs/en/configuration.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/en/configuration.rst b/docs/en/configuration.rst index bec1fe54b..dccb30740 100644 --- a/docs/en/configuration.rst +++ b/docs/en/configuration.rst @@ -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. From 7a974cc249e1423c35f17f914dcc2013c2029d36 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Fri, 29 Nov 2024 20:06:24 +0000 Subject: [PATCH 2/2] Update configuration.rst --- docs/en/configuration.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/en/configuration.rst b/docs/en/configuration.rst index dccb30740..330ab9492 100644 --- a/docs/en/configuration.rst +++ b/docs/en/configuration.rst @@ -149,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 ---------------------