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

Migrations in multiple schemas do not work if migrations-table is not schema qualified #123

Open
bentomi opened this issue Jan 23, 2018 · 0 comments

Comments

@bentomi
Copy link

bentomi commented Jan 23, 2018

If the name of the migration table is not qualified, ragtime will accept any table of the same name in any schema, ignoring the schema set for the connection (see ragtime.jdbc/metadata-matches-table?).

Wouldn't it make sense to search only the schema specified for the table name as qualifier or, if the name is not qualified, the schema returned by (.getSchema conn)? I expect, that tables found in other schemas will be useless anyway as any insertions will fail.

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

No branches or pull requests

1 participant