Modifies @Entity() statements to specify the charset and collation to be utf8mb4, to allow support for e.g. emojis which is especially important in messages.
Tested on MariaDB & Postgres (doesn't seem to have any impact).
No migration script currently because it's difficult to modify the charset of rows with foreign keys.
Modifies
@Entity()
statements to specify the charset and collation to be utf8mb4, to allow support for e.g. emojis which is especially important in messages.Tested on MariaDB & Postgres (doesn't seem to have any impact).
No migration script currently because it's difficult to modify the charset of rows with foreign keys.
Reference on why per-entity instead of globally (TLDR: it doesn't work): https://github.com/typeorm/typeorm/issues/2175
Fixes #1154