feat: 富文本编辑
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('guide_pages', function (Blueprint $table) {
|
||||
$table->dropColumn('html_url');
|
||||
$table->longText('content')->nullable()->after('title')->comment('富文本正文HTML');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('guide_pages', function (Blueprint $table) {
|
||||
$table->dropColumn('content');
|
||||
$table->string('html_url', 500)->after('title')->comment('HTML页面链接');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user