Conditionals

Plugin to support conditionals in MySQL schemas

Usage

Add the plugin to your list of plugins in dbmover.json:

plugins: ['Dbmover\\Mysql\\Conditionals', ...]

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).

Note

This plugin is not part of the Postgresql vendor-specific metapackage; you will need to add it manually to your dbmover.json config as explained above.