migrate
migrate copied to clipboard
Clickhouse - database name syntax error
trafficstars
Describe the Bug
We use the database names postfixed with the name of the environment, like a some_table_new-feature-env.
This causes an syntax error during migration

Steps to Reproduce Steps to reproduce the behavior:
- I ran migrate with the following options '-database clickhouse://localhost:9000?username=admin&password=123&database=some_table_new-feature-env&x-multi-statement=true'
- See error
Expected Behavior No errors
Migrate Version v4.15.2
Go Version go1.19 darwin/arm64
Additional context I think we just need to add backticks around database name.