gal-digital-gmbh/pimcore-simple-migration

Make pimcore migration simple

1.0.0 2022-05-11 15:22 UTC

This package is auto-updated.

Last update: 2025-03-11 22:12:40 UTC


README

Provide helper commands to perform doctrine migrate per namespace

Requirements

  • Pimcore >= 10.4
  • config file in your project PIMCORE_PROJECT_ROOT . '/config/packages/doctrine-migrations.yaml'

Installation

Require the bundle

composer require gal-digital-gmbh/pimcore-simple-migration

Commands

php bin/console migrate

Please select namespace
  [0] all
  [1] App\Migrations
  [2] App\NamespaceX\Migrations

Rollback one migration of namespace

php bin/console migrate:prev

Please select namespace
  [0] App\Migrations
  [1] App\NamespaceX\Migrations

Migrate one migration of namespace

php bin/console migrate:next

Please select namespace
  [0] App\Migrations
  [1] App\NamespaceX\Migrations

Generate new migration class in your selected namespace

php bin/console migration:generate

Please select namespace
  [0] App\Migrations
  [1] App\NamespaceX\Migrations