Hi @MarkAgar,
Thank you very much, I was now able to reproduce the error in my development environment.
The problem is with our migration script which doesn't take into consideration that "groups" is a reserved word in MySQL, and it fails when trying to rename the "groups" table to "canvas__groups". (See Release Notes#Fixed Issues why it does it.)
We'll fix this issue in the next release, but in the meantime, you can apply the following workaround:
1. Find the migration script that is part of the dap library and is called "mysql_0_to_1.sql". As a hint, in my case it is in the virtual environment at ".venv/lib/python3.12/site-packages/dap/version_upgrade/mysql_0_to_1.sql".
2. Replace the line #125 that says
SET @sqlQuery = CONCAT('RENAME TABLE ', tableName, ' TO canvas__', tableName);
with
SET @sqlQuery = CONCAT('RENAME TABLE "', tableName, '" TO canvas__', tableName);
Note the addition of the double quotes around the table name.
3. Run the original "dap" command again.
This should fix the issue. Let us know if that worked or if you need further assistance.