fix claim messages content overflow (#186)

* fix staffbox pagination

* add migrations to deal with messages content  overflow etc.
This commit is contained in:
Rey
2023-04-30 15:40:02 +08:00
committed by GitHub
parent 2844bbf729
commit 544cef3723
2 changed files with 66 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterTableTorrentsDescrOriDescrColumnsTypeFromTextToMediumtext extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('torrents', function (Blueprint $table) {
$table->mediumText('descr')->change();
$table->mediumText('ori_descr')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('text_to_mediumtext', function (Blueprint $table) {
$table->text('descr')->change();
$table->text('ori_descr')->change();
});
}
};