浏览代码

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

visuddhinanda@gmail.com 4 年之前
父节点
当前提交
4a3c47fb8d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      database/migrations/2022_02_02_103531_create_dhamma_terms_table.php

+ 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) {
         Schema::create('dhamma_terms', function (Blueprint $table) {
 			#使用雪花id
 			#使用雪花id
             $table->bigInteger('id')->primary();
             $table->bigInteger('id')->primary();
-            $table->string('guid',36);
+            $table->string('guid',36)->uniqid();
 
 
             $table->string('word',1024)->index();
             $table->string('word',1024)->index();
             $table->string('word_en',1024)->index();
             $table->string('word_en',1024)->index();