Skip to content

Default collation for Mysql #1010

@nicosp

Description

@nicosp

The current code defaults to utf8mb4_unicode_ci if the collation is not specified for a table.

This could potentially create tables different from the database collation. For example MariaDb 11.8 defaults to "utf8mb4_uca1400_ai_ci".

Migrations should either:

  1. Do not offer any default which would cause tables to fallback to the database collation
    or
  2. Make the default configurable (including nulls)

I can create a PR for either of these if we have a decision on how to proceed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions