uuid('id')->primary(); $table->string('type'); $table->morphs('notifiable'); $table->text('data'); $table->timestamp('read_at')->nullable(); $table->timestamps(); }); Schema::table('order', function (Blueprint $table) { $table->renameColumn('order_sn', 'sn'); }); foreach ($this->configs as $config) { \App\Models\Config::insert(['name' => $config]); } \App\Models\Config::whereIn('name', $this->dropConfigs)->delete(); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('notifications'); Schema::table('order', function (Blueprint $table) { $table->renameColumn('sn', 'order_sn'); }); foreach ($this->dropConfigs as $config) { \App\Models\Config::insert(['name' => $config]); } \App\Models\Config::whereIn('name', $this->configs)->delete(); } }