Open davidlzs opened 2 years ago
Did that happen after a second run of that script?
The create table has a IF NOT EXISTS
clause so it's idempotent, but that's not the case for the index.
The is no IF NOT EXISTS
clause for index creation. If we want to solve this, we will need to write a more complex script that checks the information_schema
table.
Versions used
Akka version:
Expected Behavior
Please describe the expected behavior of the issue, starting from the first action.
Actual Behavior
Please provide a description of what actually happens, working from the same starting point.
When using the MySQL schema creation script to create DB objects, we got the following MySQL warning:
Relevant logs
If you identified a section in your logs that explains the bug or might be important to understand it, please add it.
Reproducible Test Case
Please provide a PR with a failing test.
If the issue is more complex or requires configuration, please provide a link to a project that reproduces the issue.