Now I want to change the MySQL 8.0.24 table name in flyway, this is the sql command:
RENAME TABLE package_exception TO package_event;
how to handle the table package_exception
not exists? how to handle the package_event
already exists? I have already tried this:
ALTER TABLE IF EXISTS package_exception RENAME TO package_event;
but shows error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF EXISTS package_exception RENAME TO package_event' at line 1