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

Improve setup checks naming and improve database version check #41083

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Oct 24, 2023

Summary

Improve setup checks naming so that output of the checks feel more natural.
Also fix and improves database version checking.

Using #41081 , before:
Screenshot_20231024_114419

current state:
Screenshot_20231024_114513

Checklist

@come-nc come-nc added the 2. developing Work in progress label Oct 24, 2023
@come-nc come-nc added this to the Nextcloud 28 milestone Oct 24, 2023
@come-nc come-nc self-assigned this Oct 24, 2023
if ($databasePlatform instanceof MySQLPlatform) {
$result = $this->connection->prepare("SHOW VARIABLES LIKE 'version';");
$result->execute();
$row = $result->fetch();

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OCP\DB\IPreparedStatement::fetch has been marked as deprecated
} elseif ($databasePlatform instanceof PostgreSQLPlatform) {
$result = $this->connection->prepare('SHOW server_version;');
$result->execute();
$row = $result->fetch();

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OCP\DB\IPreparedStatement::fetch has been marked as deprecated
come-nc referenced this pull request Oct 24, 2023
@come-nc come-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 26, 2023
@come-nc come-nc marked this pull request as ready for review October 26, 2023 09:09
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

Much better :)

@come-nc come-nc requested a review from Altahrim October 26, 2023 14:23
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
@blizzz blizzz mentioned this pull request Nov 6, 2023
@come-nc come-nc merged commit 273f628 into master Nov 7, 2023
39 of 42 checks passed
@come-nc come-nc deleted the feat/improve-setup-checks-wording branch November 7, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants