From b1064408706fb665a25a2fe219e32582129baf53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20T=C3=BDc?= Date: Mon, 9 Oct 2023 12:20:38 +0200 Subject: [PATCH] Update README.md section about Doctrine migrations Clarify installation steps with Doctrine migrations. There are already Doctrine migrations in SyliusCmsPagePlugin. Generating new one by calling `doctrine:migrations:diff` before calling `doctrine:migrations:migrate` creates duplicate SQL changes. And that effectively breaks `doctrine:migrations:migrate` after as it crash on already existing SQL table. My proposal is to call `doctrine:migrations:migrate`, similar as in for example https://github.com/BitBagCommerce/SyliusWishlistPlugin/blob/master/doc/01-installation.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 622366f..b5ddd2f 100644 --- a/README.md +++ b/README.md @@ -60,13 +60,19 @@ monsieurbiz_cms_page_shop: ### Migrations -Make a doctrine migration diff : +First, please run legacy-versioned migrations by using command : + +```bash +bin/console doctrine:migrations:migrate +``` + +After migration, please create a new diff migration : ```php bin/console doctrine:migrations:diff ``` -Then run it : +Then run it (if any) : ```php bin/console doctrine:migrations:migrate