Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to pipe some command before DB dump import #67

Open
michalbiarda opened this issue Feb 17, 2023 · 0 comments
Open

Allow to pipe some command before DB dump import #67

michalbiarda opened this issue Feb 17, 2023 · 0 comments
Assignees
Milestone

Comments

@michalbiarda
Copy link
Contributor

michalbiarda commented Feb 17, 2023

One might want to add for example: | sed 's/utf8mb4_.*_ci/utf8mb4_general_ci/g'

I suggest to allow users to add array of commands that will be piped. For example:

configuration:
  import:
    modify-dump:
      - "sed 's/utf8mb4_.*_ci/utf8mb4_general_ci/g"
      - "something else"

Here's the method responsible for generating import command: \Driver\Engines\MySql\Import\Primary::getImportCommand.

Please remember to document this feature in README file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants