Change cache table to mediumtext (#12649)

Fixes #12620
This commit is contained in:
Jellyfrog 2021-03-26 11:09:42 +01:00 committed by GitHub
parent 6aa7717403
commit 77d21c1d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ChangeCacheToMediumtext extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cache', function (Blueprint $table) {
$table->mediumText('value')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('cache', function (Blueprint $table) {
$table->text('value')->change();
});
}
}

View File

@ -347,7 +347,7 @@ bill_port_counters:
cache:
Columns:
- { Field: key, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: value, Type: text, 'Null': false, Extra: '' }
- { Field: value, Type: mediumtext, 'Null': false, Extra: '' }
- { Field: expiration, Type: int, 'Null': false, Extra: '' }
Indexes:
cache_key_unique: { Name: cache_key_unique, Columns: [key], Unique: true, Type: BTREE }