-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix some typos in migration scripts #6149
Conversation
Signed-off-by: Stefan Weil <[email protected]>
This will break every installation which is maintaining their database with FlyWay:
|
There were already renames and other changes made for the migration scripts in the past as far as I know. Therefore I thought that running repair is something which was accepted. |
For our own production database the existing scripts also produce checksum mismatches. So the documentation for migrations should include this case. |
Unrelated: I wonder why even new migration scripts are named V2_*.sql. Are they really still related to Kitodo.Production 2.x? Or what is the meaning of "V2"? |
V2 has nothing to do with Kitodo.Production 2. V1 is the base for all upcoming migrations while developing for Kitodo.Production 3.x was ongoing until now and their version begins with V2 prefix. |
Yes this was done in the past and I was not happy over this changes as I maintain a lot of databases which must all adjusted when the databases get updated to a new version usage. Now it is not only a typo correction inside the files now even a migration file get renamed. The typo's may be ugly but this should be discovered while the pull request is reviewed and not a lot of time later and even after the file is part of a release. In my opinion this typo's should stay and not get fixed. |
I agree with @henning-gerhardt that fixing these typos in comments (!) is not worth creating additional hassle and workloads for administrators, especially when those typos do not really pose any problems. I will therefor not merge the pull request and close it instead. |
Is there additional hassle? I have to run flyway:repair anyway and see no additional workloads. |
The difference is: in this pr only "comments" are changed which did not influence the migration itself. In Issue #6139 may the migration itself need be changed (if this is really needed on MacOS) which would be not nice but more understandable. Using |
Meanwhile the flyway migration produces lots of warnings for migration scripts which seem to use SQL which will no longer be supported in future versions of MariaDB. So sooner or later there will be a hard requirement for updated migration scripts. Then minor fixes like the ones here can be applied without causing "additional hassle". |
No description provided.