Ver código fonte

:bug: $table->string('guid',36)->uniqid();

visuddhinanda@gmail.com 4 anos atrás
pai
commit
4a3c47fb8d

+ 1 - 1
database/migrations/2022_02_02_103531_create_dhamma_terms_table.php

@@ -16,7 +16,7 @@ class CreateDhammaTermsTable extends Migration
         Schema::create('dhamma_terms', function (Blueprint $table) {
 			#使用雪花id
             $table->bigInteger('id')->primary();
-            $table->string('guid',36);
+            $table->string('guid',36)->uniqid();
 
             $table->string('word',1024)->index();
             $table->string('word_en',1024)->index();