Explicitly use UTF8 encoding for media metadata table (#863)

This commit is contained in:
Xaekai 2020-04-11 14:23:36 -07:00 committed by GitHub
parent a53f65a1d5
commit f2adbe18da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ export async function initTables() {
// The types of id and type are chosen for compatibility // The types of id and type are chosen for compatibility
// with the existing channel_libraries table. // with the existing channel_libraries table.
// TODO in the future schema, revisit the ID layout for different media types. // TODO in the future schema, revisit the ID layout for different media types.
t.charset('utf8');
t.string('id', 255).notNullable(); t.string('id', 255).notNullable();
t.string('type', 2).notNullable(); t.string('type', 2).notNullable();
t.text('metadata').notNullable(); t.text('metadata').notNullable();