浏览代码

Add migration

Daniel Supernault 2 年之前
父节点
当前提交
0d549774f9
共有 1 个文件被更改,包括 29 次插入0 次删除
  1. 29 0
      database/migrations/2023_01_21_124608_fix_duplicate_profiles.php

+ 29 - 0
database/migrations/2023_01_21_124608_fix_duplicate_profiles.php

@@ -0,0 +1,29 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Support\Facades\Artisan;
+
+return new class extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Artisan::call('fix:profile:duplicates');
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+};