Add (migration): change certain fields to mediumtext

This commit is contained in:
2023-11-23 13:26:53 +08:00
parent f03d93ad4a
commit cd73be588f

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('rss_posts', function (Blueprint $table) {
$table->mediumText('source')->change();
$table->mediumText('source_url')->change();
$table->mediumText('post_url')->change();
$table->mediumText('title')->change();
$table->mediumText('slug')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('rss_posts', function (Blueprint $table) {
$table->string('source')->change();
$table->string('source_url')->change();
$table->string('post_url')->change();
$table->string('title')->change();
$table->string('slug')->change();
});
}
};