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

Support rollback of SQL schema change #17

Closed
zhj-hx opened this issue Aug 2, 2021 · 6 comments
Closed

Support rollback of SQL schema change #17

zhj-hx opened this issue Aug 2, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@zhj-hx
Copy link

zhj-hx commented Aug 2, 2021

Can you provide a function for backup of sql change?

This is very necessary for production environment.

@zhj-hx zhj-hx added the enhancement New feature or request label Aug 2, 2021
@tianzhou
Copy link
Collaborator

tianzhou commented Aug 2, 2021

Do you mean to (1) only backup the schema or (2) the data as well as the schema (like mysqldump) ?

@zhj-hx
Copy link
Author

zhj-hx commented Aug 3, 2021

Do you mean to (1) only backup the schema or (2) the data as well as the schema (like mysqldump) ?

I have added an instance, but I do not see the database information on the instance.If I add a database, I will be prompted that the database already exists.

@tianzhou
Copy link
Collaborator

tianzhou commented Aug 3, 2021

Do you mean to (1) only backup the schema or (2) the data as well as the schema (like mysqldump) ?

I have added an instance, but I do not see the database information on the instance.If I add a database, I will be prompted that the database already exists.

Sorry, I am a bit lost here as I couldn't see how it's related to the original "backup of sql change" question. Could you please elaborate a bit more?

@zhj-hx
Copy link
Author

zhj-hx commented Aug 3, 2021

sorry,I confused the two issues. This issue wants to know how to facilitate rollback after database changes

@tianzhou
Copy link
Collaborator

tianzhou commented Aug 3, 2021

sorry,I confused the two issues. This issue wants to know how to facilitate rollback after database changes

Do you mean to rollback the schema change like specifying a down "script" as opposed to "up" statement similar to ruby migration? https://edgeguides.rubyonrails.org/active_record_migrations.html ?

If that's the case, we are planning to add this in couple weeks. Stay tuned.

@tianzhou tianzhou changed the title backup of sql change Support rollback of SQL schema change Aug 9, 2021
@tianzhou
Copy link
Collaborator

tianzhou commented Sep 3, 2021

@tianzhou tianzhou closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants