Propel Clean Command feature integration

Edit on GitHub

Install Feature Core

Prerequisites

Ensure that the related features are installed:

Name Version Integration guide
Spryker Core 201907.0 Feature

1)Install the required modules using Composer

Run the following command(s) to install the required modules:

composer require spryker/propel:"^3.10.0" --update-with-dependencies
Make sure that the following modules have been installed:
Module Expected Directory
Propel vendor/spryker/propel

2) Set Up Behavior

Clean up codeception configuration by deleting SetupHelper from all codeception configuration files:

- \SprykerTest\Shared\Application\Helper\SetupHelper
Use `SprykerTest\Shared\Testify\Helper\DataCleanupHelper ` instead to clean up data after each test that can intersect with other tests.

Enable the DatabaseDropTablesConsole console command in Pyz\Zed\Console\ConsoleDependencyProvider:

src/Pyz/Zed/Console/ConsoleDependencyProvider.php
    <?php
    class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider
{
    /**
     * @param \Spryker\Zed\Kernel\Container $container
     *
     * @return \Symfony\Component\Console\Command\Command[]
     */
    protected function getConsoleCommands(Container $container)
    {
        $commands = [
            ...
            new DatabaseDropTablesConsole(),
            ...
* Spryker\Zed\Propel\Communication\Console\DatabaseExportConsole is deprecated.
* Spryker\Zed\Propel\Communication\Console\DatabaseImportConsole is deprecated.

Run vendor/bin/console and make sure the propel:tables:drop command is in the list.