incubator-airflow/scripts
Jarek Potiuk 6d6ca14675
Fixes inconsistent behaviour of utf8mb4 encoding on Mysql 5.7/8 (#12614)
* Fix Connection.description migration for MySQL8

Due to not executing MySQL8 tests Fixed in #12591 added
description for connection table was not compatible with
MySQL8 with utf8mb4 character set.

This change adds migration and fixes the previous migration
to make it compatible.

* Fixes inconsistent setting of encoding on Mysql 5.7/8

We missed that when we added support
for differnet mysql versions in #7717 when we removed default
character set setting for the database server.

This change forces the default on database server to be
utf8mb4 - regardless if MySQL 5.7 or MySQL8 is used.
Utf8mb4 is default for MySQL8 but latin1 is default fo MySQL 5.7.

There was a suspected root cause of the problem:

https://dev.mysql.com/doc/refman/8.0/en/charset-connection.html
where mysql client falls back to the default collation if
the client8 is used with 5.7 database, but this should be
no problem if the default DB character set is forced to be
utf8mb4

This PR restores forcing the server-side encoding.
2020-11-25 14:37:53 +01:00
..
ci Fixes inconsistent behaviour of utf8mb4 encoding on Mysql 5.7/8 (#12614) 2020-11-25 14:37:53 +01:00
docker Update install_mysql.sh (#12101) 2020-11-05 17:32:39 +01:00
in_container Rename `[scheduler] max_threads` to `[scheduler] parsing_processes` (#12605) 2020-11-25 09:33:19 +00:00
systemd [AIRFLOW-6479] Update celery command calls (#7068) 2020-01-08 17:02:14 +01:00
tools Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
upstart [AIRFLOW-6479] Update celery command calls (#7068) 2020-01-08 17:02:14 +01:00