visuddhinanda 1 год назад
Родитель
Сommit
dbfb88ff57

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

@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddOwnerInTagMaps extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('tag_maps', function (Blueprint $table) {
+            //
+            $table->uuid('owner_uid')->index()->default(config("mint.admin.root_uuid"));
+            $table->uuid('editor_uid')->index()->default(config("mint.admin.root_uuid"));
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('tag_maps', function (Blueprint $table) {
+            //
+            $table->dropColumn('owner_uid');
+            $table->dropColumn('editor_uid');
+        });
+    }
+}

+ 34 - 0
database/migrations/2024_05_14_224013_add_signinmessage_in_courses.php

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