From 9d61becba9f61625d3bcaca9d521dd3c2e25e24c Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 18 Feb 2018 20:54:08 +0200 Subject: [PATCH] Thread message body TEXT -> MEDIUMTEXT (for long legacy logs) --- db/migrations/20171223203915_create_tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrations/20171223203915_create_tables.js b/db/migrations/20171223203915_create_tables.js index 9c569dd..b5880a3 100644 --- a/db/migrations/20171223203915_create_tables.js +++ b/db/migrations/20171223203915_create_tables.js @@ -15,7 +15,7 @@ exports.up = async function(knex, Promise) { table.integer('message_type').unsigned().notNullable(); table.string('user_id', 20).nullable(); table.string('user_name', 128).notNullable(); - table.text('body').notNullable(); + table.mediumtext('body').notNullable(); table.integer('is_anonymous').unsigned().notNullable(); table.string('dm_message_id', 20).nullable().unique(); table.dateTime('created_at').notNullable().index();