From f2adbe18da3992768b9f1e0df36b8f86d3f24099 Mon Sep 17 00:00:00 2001 From: Xaekai Date: Sat, 11 Apr 2020 14:23:36 -0700 Subject: [PATCH] Explicitly use UTF8 encoding for media metadata table (#863) --- src/database/tables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/database/tables.js b/src/database/tables.js index cc389dca..dee036bf 100644 --- a/src/database/tables.js +++ b/src/database/tables.js @@ -147,6 +147,7 @@ export async function initTables() { // The types of id and type are chosen for compatibility // with the existing channel_libraries table. // TODO in the future schema, revisit the ID layout for different media types. + t.charset('utf8'); t.string('id', 255).notNullable(); t.string('type', 2).notNullable(); t.text('metadata').notNullable();