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

MNT Output correct version for databases #106

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Feb 21, 2024

My port trick in #105 didn't work with --version but it does work with --execute (tested locally). But there's no easy way to check the postgres or sqlite ones.

So I've removed the ones we can't check easily, and I'm making explicit database queries to get the version from the database directly.

Because a failure to connect to the DB might exit badly, I've added || true to ensure it doesn't fail the whole build just for this debug output.

Issue

@GuySartorelli GuySartorelli force-pushed the pulls/1.7/fix-version-check branch from 143268e to bb195a1 Compare February 22, 2024 00:03
Copy link
Contributor

@sabina-talipova sabina-talipova left a comment

Choose a reason for hiding this comment

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

LGTM

@sabina-talipova sabina-talipova merged commit d768bd4 into silverstripe:1.7 Feb 22, 2024
4 checks passed
@sabina-talipova sabina-talipova deleted the pulls/1.7/fix-version-check branch February 22, 2024 00:07
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