From fd1305c2890b1252f4f36f50dbbf11e4bf7dd0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Chru=C5=9Bciel?= Date: Wed, 23 Sep 2020 14:24:48 +0200 Subject: [PATCH] [DX][Database] Configure default migration folder --- config/packages/doctrine_migrations.yaml | 2 ++ config/packages/sylius_labs_doctrine_migrations_extra.yaml | 3 +++ src/Migrations/.gitignore | 0 3 files changed, 5 insertions(+) create mode 100644 config/packages/sylius_labs_doctrine_migrations_extra.yaml create mode 100644 src/Migrations/.gitignore diff --git a/config/packages/doctrine_migrations.yaml b/config/packages/doctrine_migrations.yaml index cdbc01ae7c..765b5c5e70 100644 --- a/config/packages/doctrine_migrations.yaml +++ b/config/packages/doctrine_migrations.yaml @@ -2,3 +2,5 @@ doctrine_migrations: storage: table_storage: table_name: sylius_migrations + migrations_paths: + 'App\Migrations': "%kernel.project_dir%/src/Migrations" diff --git a/config/packages/sylius_labs_doctrine_migrations_extra.yaml b/config/packages/sylius_labs_doctrine_migrations_extra.yaml new file mode 100644 index 0000000000..3150dd9087 --- /dev/null +++ b/config/packages/sylius_labs_doctrine_migrations_extra.yaml @@ -0,0 +1,3 @@ +sylius_labs_doctrine_migrations_extra: + migrations: + 'App\Migrations': ~ diff --git a/src/Migrations/.gitignore b/src/Migrations/.gitignore new file mode 100644 index 0000000000..e69de29bb2