|
|
@@ -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');
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|