Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clickhouse: Fix CheckMigrationTableExists #387

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

docapotamus
Copy link
Contributor

@docapotamus docapotamus commented Feb 20, 2023

Checking for the migration tables existence in Clickhouse shouldn't pass a parameter.

This could be acheived one of two ways:

  • Use Sprintf to add the table name to the query (this is what is used elsewhere within the Clickhouse driver)
  • Check the information_schema using currentDatabase().

Opted for the first as that is what is used elsewhere.

Fixes #301

Checking for the migration tables existence in Clickhouse shouldn't pass
a parameter.
@amacneil
Copy link
Owner

thanks!

@amacneil amacneil merged commit 447ea69 into amacneil:main Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dbmate status fails for ClickHouse
2 participants