database/migrations/2023_07_18_075557_add_length_field_to_topic_richtexts_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddLengthFieldToTopicRichtextsTable extends Migration
{
public function up(): void
{
Schema::table('topic_richtexts', function (Blueprint $table) {
$table->bigInteger('length')->nullable();
});
}
public function down(): void
{
Schema::table('topic_richtexts', function (Blueprint $table) {
$table->dropColumn('length');
});
}
}