Feature: added ability to append sql that should be run in the end of an import #239
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is relevant when you want to anonymize some of the dumps you do, but in a development enviroment you probably want to auto-set some values in different columns based on types.
From our own example:
We would like to autoset some integration parameters depending on the"module" that is being used. When we have a ton of different modules and multiple entries in a db, this list is typically autogenerated. Using this append sql we are able to do some updates after an import of those values.
Not sure if other people would benefit from this, but i thougt i would like to share our change to the dumper so others could benefit from it.