yii2-db-manager icon indicating copy to clipboard operation
yii2-db-manager copied to clipboard

How use customDumpOptions

Open ignatenkovnikita opened this issue 6 years ago • 2 comments

How use customDumpOptions in console mode

ignatenkovnikita avatar Jan 05 '19 20:01 ignatenkovnikita

I encounter this problem as well...

joester89 avatar Mar 27 '20 13:03 joester89

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;

agapov97 avatar May 13 '20 15:05 agapov97