Skip to content

SamJUK/m2-module-verbose-db-status

Repository files navigation

SamJUK_VerboseDBStatus

Supported Magento Versions CI Workflow Status GitHub Release

This is a simple module that adds a verbose and extra verbose mode to the setup:db:status command.

Especially useful within a CI environment for identifying what schema changes are causing a database migration, which in turn prevents most typical zero downtime deployment strategies.

Example with the verbose flag set Example with the extra verbose flag set
Example of the DB Status command with the verbose flag set Example of the DB Status command with the extra verbose flag set

Installation

composer config repositories.samjuk-m2-module-verbose-db-status vcs [email protected]:SamJUK/m2-module-verbose-db-status.git
composer require samjuk/m2-module-verbose-db-status:@dev
php bin/magento module:enable SamJUK_VerboseDBStatus && php bin/magento cache:flush

Usage

Run the setup:db:status command, specifying the appropriate verbosity level

php bin/magento setup:db:status # Standard Magento Output
php bin/magento setup:db:status -v # Display before and after for modified values
php bin/magento setup:db:status -vv # Display before and after for modified values, and raw data diff

About

Simple Magento 2 module adding verbose output for `setup:db:status`

Topics

Resources

License

Stars

Watchers

Forks