Noob question regarding command line syntax for the RollbackToDate(SQL) command. I keep getting the error that the date needs to be in the format of ‘yyyy-MM-dd HH:mm:ss’ which I have been supplying ‘2009-07-21 14:25:00’ and it does not seem to like this format.
It is trying to apply the change against a MSSQL server (if it matters). Anyone had any experience with this and found this works with a different date format or am I truly a noob an missing something simple.
I’ve been able to do updates and rollbackCount without issue and would like to use the Date option for certain rollbacks.
The only error is the “Migration Failed: Unexpected date/time format. Use ‘yyyy-MM-dd HH:mm:ss’” that is returned when I execute the command. This is printed even if I use your suggestion adding the --logLevel=finest.
I haven’t had any issues with this command line doing an UpdateSQL or even a RollbackCountSQL so it wouldn’t seem to me to be an issue with syntax.
The version I’m running is 1.9.3.
I appreciate the original response as I hadn’t thought of (or realized I could…) increasing the logging level. Other thoughts that may help would be greatly appreciated.
INFO 5/15/13 5:00 PM:liquibase: Successfully acquired change log lock INFO 5/15/13 5:00 PM:liquibase: Reading from DATABASECHANGELOG INFO 5/15/13 5:00 PM:liquibase: Successfully released change log lock Liquibase Rollback Successful
But when I inspect the database, I don’t find any rollback on my “department” table, which is the table I am using to learn liquibase.
I made many inserts with liquibase, and I could rollback with "rollback ", by previously adding tags to the several states the database acquired, as the time and the operations went by.
For me, it is very important to be able to rollback the database to a specific time.