You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/09/21 16:13:14 UTC
[GitHub] [incubator-devlake] mappjzc opened a new issue, #3158: [Feature][migration] data migration helper with rollback
mappjzc opened a new issue, #3158:
URL: https://github.com/apache/incubator-devlake/issues/3158
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
most of time
when we want to migration a table. we use the flow step.
1. rename TABLE to TEMP (stop if error, define `defer` to rename back on error)
2. create new TABLE (stop if error, define `defer` to drop TABLE on error)
3. convert data from TEMP to TABLE (stop if error)
4. drop TEMP.
It‘s better to create one helper function to do it.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] klesh closed issue #3158: [Feature][migration] data migration helper with rollback
Posted by GitBox <gi...@apache.org>.
klesh closed issue #3158: [Feature][migration] data migration helper with rollback
URL: https://github.com/apache/incubator-devlake/issues/3158
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org