yii2-db-manager
yii2-db-manager copied to clipboard
How use customDumpOptions
How use customDumpOptions in console mode
I encounter this problem as well...
Little bit late to party, but in case if someone still wondering how to do this... Seems like there is only one option as for now:
- create new manager class (for example, extend MysqlDumpManager or PostgresDumpManager), override makeDumpCommand method and make it build the command you need;
- configure corresponding module field (e.g. $mysqlManagerClass or $postgresManagerClass) to new class or configure module $createManagerCallback field to return this new custom manager class;