How to persist the changes, even an error is occured with in try catch in flyway? -
i using flyway , have procedure, migrate employees. in procedure using try/catch block , using begin/commit transaction within while loop of processing employee. if error occurring row, skip next employee. after processing employees, flyway rolling entire migration if there exception in @ least 1 row. there solution persist employees being migrated successfully.
flyway rolls if sql exception thrown. double-check code make sure correct.
Comments
Post a Comment