Replies: 5 comments 1 reply
-
Hi.
Dropping support to old versions of something is rather common in software world. We Apollo also dropped support to Java 7 too? It's reasonable flyway drops support to MySQL 5.7 which is 5 years old?
I'm not against to remove flyway, I'm really interested in how simple would it be after we remove flyway, can you give some examples if we want to add a field to an existing table after removing flyway? |
Beta Was this translation helpful? Give feedback.
-
@kezhenxu94 I'm not going to explain how it will be simple after removing it, but currently, when updating SQL, we need to maintain three parts scripts:
That's why I said we need to do a lot of maintenance work if want to add a new column, if there has another way to keep this stuff simple and also keep the flyway, I think it will be great. |
Beta Was this translation helpful? Give feedback.
-
The main issue here is the cost of maintaining the database schemas.
There are some duplications:
For 1 & 2, I'm wondering whether it's possible to only have the data initialization scripts in the scripts/docker-quick-start/sql folder and reuse the sql scripts under scripts/sql folder when starting the quick start db. If we can do that, then there is no duplication for 1 & 2. For 3 & 4, I'm not sure whether there is a better way to do it. One way to remove the duplication is to only maintain delta scripts in the flyway folder, then we update the release note to let users know the mapping between apollo versions and the delta scripts, e.g. if the user wants to upgrade from 1.9.0 to 2.0.0, then we tell the user the correct files to apply is |
Beta Was this translation helpful? Give feedback.
-
Make sense. Let's remove flyway |
Beta Was this translation helpful? Give feedback.
-
3 months passed and it seems the community is okay with removing flyway. So I think we could proceed with the proposal. |
Beta Was this translation helpful? Give feedback.
-
I propose to remove Flyway from Apollo after release 2.0.0. Flyway is a very good database migration tool, and it was introduced in Apollo with PR #1828 by @kezhenxu94.
Why remove it?
There are two main reasons:
Undo
, and recently I found MySQL 5.7 is no longer supported by Flyway Community Edition.@apolloconfig/committers If you have any suggestions, please leave your comments.
Beta Was this translation helpful? Give feedback.
All reactions