-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Improve setup checks naming and improve database version check #41083
Conversation
Signed-off-by: Côme Chilliet <[email protected]>
if ($databasePlatform instanceof MySQLPlatform) { | ||
$result = $this->connection->prepare("SHOW VARIABLES LIKE 'version';"); | ||
$result->execute(); | ||
$row = $result->fetch(); |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
} elseif ($databasePlatform instanceof PostgreSQLPlatform) { | ||
$result = $this->connection->prepare('SHOW server_version;'); | ||
$result->execute(); | ||
$row = $result->fetch(); |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better :)
Summary
Improve setup checks naming so that output of the checks feel more natural.
Also fix and improves database version checking.
Using #41081 , before:
current state:
Checklist