davidjeddy/codeception-yii2-migration-runner

Codeception extension for running Yii2 migrations.

dev-master 2017-07-11 20:46 UTC

This package is auto-updated.

Last update: 2024-11-05 18:31:13 UTC


README

Codeception extension that will run Yii2 migration commands and provide the output as a dump file. This is typically then picked up by the Codeception Db extension and loaded before each test is executed. The migration output, however, is only runs during the codeception build execution.

BADGES

Lahello Stable Version Total Downloads Lahello Unstable Version License Monthly Downloads Daily Downloads composer.lock

Add Sensiolabs quality here

REQUIREMENTS

PHP 5.6+

Composer

Codeception 2.3+

Usage of Codeception's Database module

Important: You must have creditials for a user with permission to create a database schema.

INSTALLATION

  • cd {project root}
  • Run composer require davidjeddy/codecept-yii2-migration-runner in terminal
    • OR add "davidjeddy/codecept-yii2-migration-runner": "dev-master@dev" to your project's composer.json, then run composer update.

CONFIGURATION

Edit codeception.yml adding the migration commands

USAGE

  • Recreate a database scheme named {TEST_DB_SCHEMA}-remigrate.
  • Execute the Codeception build command.
  • Run Codeception test suite.