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, 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. & 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.
Comments
Post a Comment