Skip to content

Add setup check to verify that the used DB version is still supported… - #25016

Merged
rullzer merged 1 commit into
masterfrom
enh/noid/add-check-for-unsupported-db
Jan 11, 2021
Merged

Add setup check to verify that the used DB version is still supported…#25016
rullzer merged 1 commit into
masterfrom
enh/noid/add-check-for-unsupported-db

Conversation

@MorrisJobke

Copy link
Copy Markdown
Member

… in the next major release

@MorrisJobke

Copy link
Copy Markdown
MemberAuthor


public function check() {
switch (get_class($this->connection->getDatabasePlatform())) {
case MySQL80Platform::class: # extends MySQL57Platform

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I left all the platforms in here to have the full overview (except DB2 or MSSQLServer as we don't support them at all)

Comment threadapps/settings/lib/SetupChecks/SupportedDatabase.php Outdated
Comment threadapps/settings/lib/SetupChecks/SupportedDatabase.php Outdated
@rullzerrullzer mentioned this pull request Jan 7, 2021
5 tasks
@MorrisJobke
MorrisJobkeforce-pushed the enh/noid/add-check-for-unsupported-db branch 2 times, most recently from ff94601 to 58adf13CompareJanuary 7, 2021 19:53
@MorrisJobke

Copy link
Copy Markdown
MemberAuthor

Ready for review :)

@MorrisJobke
MorrisJobkeforce-pushed the enh/noid/add-check-for-unsupported-db branch from 58adf13 to 834d8a5CompareJanuary 7, 2021 21:03
@MorrisJobke

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

$version = strtolower($row['Value']);

if (strpos($version, 'mariadb') !== false) {
if (version_compare($version, '10.4', '<')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if (version_compare($version, '10.4', '<')) {
if (version_compare($version, '10.2', '<')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Our docs say, that 10.2 works and CI runs against 10.1 🙈

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I changed it to 10.2 for now. We can raise it later again, okay?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

10.2 is still supported so yeah :)

… in the next major release
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke
MorrisJobkeforce-pushed the enh/noid/add-check-for-unsupported-db branch from 834d8a5 to bffa61fCompareJanuary 8, 2021 12:38
@MorrisJobke

Copy link
Copy Markdown
MemberAuthor

@rullzer@ChristophWurst Ready for review :)

@rullzerrullzer mentioned this pull request Jan 11, 2021
14 tasks
@MorrisJobkeMorrisJobke mentioned this pull request Jan 11, 2021
1 task

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good.
But didn't test

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@MorrisJobke@rullzer@nickvergessen@ChristophWurst