Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Add support for MySQL 5/8 via MariaDB driver #5071

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

onobc
Copy link
Contributor

@onobc onobc commented Aug 31, 2022

  • Use FlywayVendorReplacingEnvironmentPostProcessor to replace {vendor} in spring.flyways.locations
  • Add back in the MySQL schema
  • Use vendor (mysql) not driver in flyway configuration customizer

See #4887

⚠️ ⚠️ depends on spring-attic/spring-cloud-dataflow-common#22

@onobc onobc requested review from jvalkeal, corneil and cppwfs August 31, 2022 03:15
* Use FlywayVendorReplacingEnvironmentPostProcessor to replace {vendor} in spring.flyways.locations

* Add back in the MySQL schema

* Use vendor (mysql) not driver in flyway configuration customizer

See spring-attic#4887
@onobc onobc force-pushed the cbono-flway-vendor-replace-epp branch from 0aa0cff to f08096b Compare September 1, 2022 02:36
@onobc onobc changed the title Add support for MySQL 5/8 via MariaDB driver WIP: Add support for MySQL 5/8 via MariaDB driver Sep 1, 2022
@@ -0,0 +1,321 @@
/*
* Copyright 2019-2022 the original author or authors.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick but it would be 2022-2022.
I had to pick on something ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep - fair enough. All of these files were actually here since 2019 and recently deleted like 6 months ago. I just resurrected these from git so was unsure if we should leave the start dates like they were? Thoughts?

* @author Glenn Renfro
* @author Chris Bono
*
* @since 2.7
Copy link
Contributor

Choose a reason for hiding this comment

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

@SInCE 2.9. Nitpick ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ditto as the above outdated copyright range.

@@ -0,0 +1,269 @@
create table if not exists hibernate_sequence (
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is how it is setup. Just seems odd that the skipper migration is in dataflow and not in skipper.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeh it is a bit odd but it expects that SCDF "goes first" and if it does then it must provide the schemas.

@onobc onobc changed the title WIP: Add support for MySQL 5/8 via MariaDB driver Add support for MySQL 5/8 via MariaDB driver Sep 2, 2022
@onobc onobc merged commit 8ab2b1e into spring-attic:main Sep 2, 2022
@onobc onobc deleted the cbono-flway-vendor-replace-epp branch September 2, 2022 23:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants