Increase config value length limit (#13178)

Up to 16MB of text now
This commit is contained in:
Tony Murray
2021-09-01 07:15:25 -05:00
committed by GitHub
parent 79de1ca28e
commit e2822d7eaa
2 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ConfigValueToMediumText extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('config', function (Blueprint $table) {
$table->mediumText('config_value')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('config', function (Blueprint $table) {
$table->string('config_value', 512)->change();
});
}
}

View File

@@ -439,7 +439,7 @@ config:
Columns:
- { Field: config_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: config_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: config_value, Type: varchar(512), 'Null': false, Extra: '' }
- { Field: config_value, Type: mediumtext, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [config_id], Unique: true, Type: BTREE }
config_config_name_unique: { Name: config_config_name_unique, Columns: [config_name], Unique: true, Type: BTREE }