Open vilma-heikkila opened 3 months ago
I'm running into this as well on MySQL instances.
+1. Are there any known workarounds? This basically makes the latest Grate version 1.8.0 (and future ones if not fixed) unusable for MySQL :/
+1, newest version is unusable now
Describe the bug With 1.8.0 came a bug fix for schemas/tables with different casings (#557). However, the scripts use "ALTER TABLE IF EXISTS" syntax which doesn't seem to exist in MySQL, only in MariaDB. This breaks the database migration. The documentation says that grate supports MariaDB/MySQL, but in this specific case it doesn't. :)
To Reproduce
Have a MySQL server Run
grate -cs "XXX" --dbt "mariadb" --files "XXX"
Error occurs:
Expected behavior The script should not break the database migration.
Desktop (please complete the following information):