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

Fix previous_version function to work with non-public schema #190

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

andrew-farries
Copy link
Collaborator

@andrew-farries andrew-farries commented Oct 18, 2023

Fix the previous_version function so that it works correctly for migrations applied in schema other thanpublic.

In particular, this meant that the previous version schema would not be removed on migration completion for migrations applied in schema other than public.

Extend the test that checks the --schema flag is respected with the extra coverage that would have caught this.

Extend the test case that checks that the 'schema' option is respected;
run another migration after the first. Assert that the version schema
for the first migration is dropped on completion of the second.
To get rid of the hard-coded `'public'` schema name.
Copy link
Member

@exekias exekias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch

@andrew-farries andrew-farries merged commit d486aab into main Oct 18, 2023
22 checks passed
@andrew-farries andrew-farries deleted the fix-previous-version-function branch October 18, 2023 08:00
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