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:
parent
9abba00fe1
commit
91280c2177
@ -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();
|
||||
});
|
||||
|
@ -25,6 +25,8 @@ class AddHashColumnToLtmTranslationsTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
|
||||
Schema::table('ltm_translations', function (Blueprint $table) {
|
||||
$table->dropColumn('hash');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user