فهرست منبع

add anthology_id,publicity,channel_id

visuddhinanda 3 سال پیش
والد
کامیت
86bc750748
1فایلهای تغییر یافته به همراه38 افزوده شده و 0 حذف شده
  1. 38 0
      database/migrations/2023_01_24_131456_add_anthology_in_courses.php

+ 38 - 0
database/migrations/2023_01_24_131456_add_anthology_in_courses.php

@@ -0,0 +1,38 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddAnthologyInCourses extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('courses', function (Blueprint $table) {
+            //
+            $table->uuid('anthology_id')->nullable()->index();
+			$table->integer('publicity')->default(10)->index();
+            $table->uuid('channel_id')->nullable()->index();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('courses', function (Blueprint $table) {
+            //
+            $table->dropColumn('anthology_id');
+            $table->dropColumn('publicity');
+            $table->dropColumn('channel_id');
+        });
+    }
+}