Skip to content

Check schema when checking for migrations table. #34

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

Conversation

euclides-jr
Copy link

@euclides-jr euclides-jr commented Jan 8, 2020

Hi,
currently, when checking for the existence of the migrations table, any table with this name is accepted as a match, regardless of the schema the table is in. This conflicts with graphile_worker, which itself creates a migrations table, albeit in a different schema. Nevertheless, upon starting up postgres-migrations sees it, believes to have found its own table and crashes when trying to access it. This pull request solves the issue by looking for the table only in the public namespace, where it is created by default.

@ThomWright
Copy link
Owner

Duplicate of #33 - albeit with a different solution.

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.

2 participants