-
Notifications
You must be signed in to change notification settings - Fork 0
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
[INFRA] Migration de MySQL 5.7 vers 8.0 #2289
Conversation
|
Faudra aussi envisager de mettre le site en maintenance lors du passage 5.7 à 8 |
Faire une reviewApp avec des données de prod pour tester en conditions réelles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Une petite remarque, mais les test sont ok, j'approuve
@@ -6,7 +6,7 @@ doctrine: | |||
url: '%env(resolve:DATABASE_URL)%' | |||
# IMPORTANT: You MUST configure your server version, | |||
# either here or in the DATABASE_URL env var (see .env file) | |||
server_version: '5.7.38' | |||
server_version: '8.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas du tout bloquant mais ca fait revenir une déprécciation "User Deprecated: Version detection logic for MySQL will change in DBAL 4. Please specify the version as the server reports it, e.g. "8.0.31" instead of "8". (AbstractMySQLDriver.php:68 called by AbstractDriverMiddleware.php:68, doctrine/dbal#5779, package doctrine/orm)"
@numew @emilschn @hmeneuvrier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lecture et test OK
Je la passe en draft pour pas bloquer une possible MEP en cette fin de semaine. |
Ticket
#2102
Description
Scalingo nous propose de passer rapidement à MySQL 8, puisqu'ils vont arrêter la maintenance de MySQL 5.7 et migreront à partir du 1er juillet.
Par ailleurs, on pourra en profiter pour utiliser des fonctionnalités plus avancées à présent.
Afin de passer en MySQL 8, il y avait 2 vérifications à faire sur les tables (cf ici : https://doc.scalingo.com/databases/mysql/mysql-8-prerequisites) :
C'est bien le cas.
J'ai fait pas mal de tests, le passage à la version 8 semble indolore.
Lors du passage sur develop (lors du merge), il faudra
Changements apportés
Pré-requis
make build
Attention : quand vous revenez sur une autre branche, il faut faire
Tests