Dbmover\PgsqlConditionals
SQL extension to support conditionals in PostgreSQL schemas, (*1)
Installation
$ composer require dbmover/pgsql-conditionals
Usage
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/pgsql-tables
plugin (included in the dbmover/pgsql
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)
Contributing
See dbmover/core
., (*5)