sql server - Strategy for rolling back an altered table using liquibase -


I want to migrate my database from v1.0 to v1.1 and there are updates on some of the changes In Table 1, I know that for INSERT, I can easily add a rollback command to remove the added values, but how about a table change? Is there any way to store the current price and use this information for the rollback process (in the future)?

Thank you.

In your changes to describe how you can roll back the changes, & lt; Rollback & gt; Can specify blocks (). Within your rollback tag, you can use raw SQL or & lt; CreateTable & gt; tag, which looks like a table while changing it.

You can also specify changeSetId and changeSetAuthor in the rollback tag to reproduce the table to point to an existing changeSet. This approach can be easy if there is no other change since the creation of the object, but it is not working properly, if there have been many changes, which modify the object because it was created for the first time I went.

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -