$model->type = $channel->type;
$model->position = $channel->position;
$model->private = $channel->is_private;
+ $model->parent_id = $channel->parent_id;
$model->save();
}
--- /dev/null
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table('discord_channels', function(Blueprint $table) {
+ $table->string('parent_id')->nullable()->default(null);
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('discord_channels', function(Blueprint $table) {
+ $table->dropColumn('parent_id');
+ });
+ }
+};