Wallogit.com
2017 © Pedro Peláez
Wraps conditional statements in a "lambda" for MySQL
SQL extension to support conditionals in MySQL schemas, (*1)
$ composer require dbmover/mysql-conditionals
For general DbMover usage, see dbmover/core. This plugin needs to be
manually included in your plugin list; it is not part of any meta-package., (*2)
The plugin is run both on __invoke as well as on __destruct. Since the most
common usage is to perform conditional migrations (e.g. renaming a table), it is
recommended to add it at or near the beginning of your plugin list, but at
least before the dbmover/mysql-tables plugin (included in the dbmover/mysql
meta-package), since this is a "destructive" plugin (it actually drops tables
not found in your schemas)., (*3)
See also dbmover/conditionals for examples etc., (*4)
See dbmover/core., (*5)