Support rollback of SQL schema change · Issue #17 · bytebase/bytebase · GitHub
Skip to content

Support rollback of SQL schema change #17

Closed

Description

@zhj-hx

Can you provide a function for backup of sql change?

This is very necessary for production environment.

Activity

  1. tianzhou commented on Aug 2, 2021

    @tianzhou
    Member

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

  2. zhj-hx commented on Aug 3, 2021

    @zhj-hx
    Author

    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.

  3. tianzhou commented on Aug 3, 2021

    @tianzhou
    Member

    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?

  4. zhj-hx commented on Aug 3, 2021

    @zhj-hx
    Author

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

  5. tianzhou commented on Aug 3, 2021

    @tianzhou
    Member

    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.

  6. changed the title [-]backup of sql change[/-] [+]Support rollback of SQL schema change[/+] on Aug 9, 2021
  7. tianzhou commented on Sep 3, 2021

    @tianzhou
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions