12345678910111213141516171819202122232425262728 |
- <?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('files', function (Blueprint $table) {
- $table->tinyInteger("source")->default(1)->comment("1-附件;2-富文本编辑器");
- });
- }
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::table('files', function (Blueprint $table) {
- $table->dropColumn("source");
- });
- }
- };
|