1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-23 19:02:46 +01:00

Fix Row size too large error on adding meta column to mailboxes - closes #1058

This commit is contained in:
FreeScout 2021-02-17 09:28:19 -08:00
parent 9abba00fe1
commit 91280c2177
3 changed files with 41 additions and 1 deletions

View File

@ -14,6 +14,11 @@ class AddMetaColumnToMailboxesTable extends Migration
public function up()
{
Schema::table('mailboxes', function (Blueprint $table) {
// To avoid "Row size too large" error.
$table->text('in_server')->nullable()->change();
$table->text('out_server')->nullable()->change();
$table->text('auto_bcc')->nullable()->change();
// Meta data in JSON format.
$table->text('meta')->nullable();
});

View File

@ -25,6 +25,8 @@ class AddHashColumnToLtmTranslationsTable extends Migration
*/
public function down()
{
Schema::table('ltm_translations', function (Blueprint $table) {
$table->dropColumn('hash');
});
}
}

View File

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeStringColumnsInMailboxesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('mailboxes', function (Blueprint $table) {
// To avoid "Row size too large" error.
$table->text('in_server')->nullable()->change();
$table->text('out_server')->nullable()->change();
$table->text('auto_bcc')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}