vitaliiivanovspryker/incremental-migration

v1.0.0 2024-08-23 11:55 UTC

This package is auto-updated.

Last update: 2025-03-23 14:12:07 UTC


README

Latest Stable Version Minimum PHP Version

Installer is responsible for managing the installment process of required database data.

Installation

composer require vitaliiivanovspryker/incremental-migration
console propel:install

\Pyz\Zed\Console\ConsoleDependencyProvider::getConsoleCommands

    new GenerateIncrementalMigrationConsole(),
    new MigrateIncrementalMigrationConsole(),

Documentation

Spryker Documentation

Usage

console incremental-migration:generate FooMigration src/Pyz/Zed/Foo/Communication/Plugin/Migration
namespace Pyz\Zed\IncrementalMigration;

use Spryker\Zed\IncrementalMigration\IncrementalMigrationDependencyProvider as SprykerIncrementalMigrationDependencyProvider;

class IncrementalMigrationDependencyProvider extends SprykerIncrementalMigrationDependencyProvider
{
    /**
     * @return array<\Spryker\Zed\IncrementalMigration\Dependency\IncrementalMigrationPluginInterface>
     */
    protected function getIncrementalDataMigrations(): array
    {
        return [
            // new GeneratedIncrementalMigration(),
        ];
    }
}
console incremental-migration:migrate