Skip to content

Enhancement/Add support for MySQL#422

Merged
Hironsan merged 2 commits into
doccano:masterfrom
CatalystCode:enhancement/mysql
Nov 28, 2019
Merged

Enhancement/Add support for MySQL#422
Hironsan merged 2 commits into
doccano:masterfrom
CatalystCode:enhancement/mysql

Conversation

@c-w
Copy link
Copy Markdown
Member

@c-w c-w commented Oct 25, 2019

According to the StackOverflow survey, MySQL, PostgreSQL and SQL Server are the most popular databases for developers. Given that doccano already supports the later two; this pull request also adds support for MySQL so that doccano covers all the widely used databases.

The changes required to support MySQL are fairly minimal:

  1. The migrations had to be squashed since the manage.py migrate command crashed on MySQL during some of the AlterUniqueTogether calls.
  2. MySQL doesn't support the sslmode=require option and instead requires a certificate to validate the SSL connection to the server. A path to this certificate can now be configured via the MYSQL_SSL_CA environment variable.

Integration tests have been added to TravisCI to ensure that future changes don't break compatibility with MySQL.

@Hironsan Hironsan merged commit 9e48b82 into doccano:master Nov 28, 2019
@c-w c-w deleted the enhancement/mysql branch November 28, 2019 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants