visuddhinanda 1 år sedan
förälder
incheckning
e4f235f79a
1 ändrade filer med 36 tillägg och 0 borttagningar
  1. 36 0
      database/migrations/2024_04_14_103902_add_signup_in_courses.php

+ 36 - 0
database/migrations/2024_04_14_103902_add_signup_in_courses.php

@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddSignupInCourses extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('courses', function (Blueprint $table) {
+            //
+            $table->timestamp('sign_up_start_at')->nullable()->index();
+            $table->timestamp('sign_up_end_at')->nullable()->index();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('courses', function (Blueprint $table) {
+            //
+            $table->dropColumn('sign_up_start_at');
+            $table->dropColumn('sign_up_end_at');
+        });
+    }
+}