Skip to content

Commit

Permalink
feat(dev): add makefile target to generate migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
delyriand committed Mar 29, 2024
1 parent 3cf93ea commit bcfa7a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
### ¯¯¯¯¯¯
Expand Down
9 changes: 9 additions & 0 deletions src/Migrations/Version20240329131510.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of Monsieur Biz' Anti Spam plugin for Sylius.
*
* (c) Monsieur Biz <[email protected]>
*
* 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;
Expand Down

0 comments on commit bcfa7a9

Please sign in to comment.