From bcfa7a9f111367bae94ae470e2fa339ef8fa7f60 Mon Sep 17 00:00:00 2001 From: Maxime Leclercq Date: Fri, 29 Mar 2024 14:17:51 +0100 Subject: [PATCH] feat(dev): add makefile target to generate migration file --- Makefile | 9 +++++++++ src/Migrations/Version20240329131510.php | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index 31813b3..aae578a 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ export COMPOSE_PROJECT_NAME=anti-spam PLUGIN_NAME=sylius-${COMPOSE_PROJECT_NAME}-plugin COMPOSE=docker-compose YARN=yarn +DOCTRINE_MIGRATIONS_NAMESPACE=MonsieurBiz\SyliusAntiSpamPlugin\Migrations ### ### DEVELOPMENT @@ -142,6 +143,14 @@ test.schema: ## Validate MySQL Schema test.twig: ## Validate Twig templates ${CONSOLE} lint:twig --no-debug templates/ ../../src/Resources/views/ +### +### MIGRATIONS +### ¯¯¯¯¯¯¯¯¯¯ + +doctrine.migration.diff: ## create a diff migration file for the plugin + ${CONSOLE} doctrine:migrations:diff --namespace="${DOCTRINE_MIGRATIONS_NAMESPACE}" +.PHONY: doctrine.migration.diff + ### ### SYLIUS ### ¯¯¯¯¯¯ diff --git a/src/Migrations/Version20240329131510.php b/src/Migrations/Version20240329131510.php index 5102ada..b0a9857 100644 --- a/src/Migrations/Version20240329131510.php +++ b/src/Migrations/Version20240329131510.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ + declare(strict_types=1); namespace MonsieurBiz\SyliusAntiSpamPlugin\Migrations;