Quellcode durchsuchen

Merge pull request #739 from visuddhinanda/laravel-migrate-wbw

:bug: $table->string('guid',36)->uniqid();
visuddhinanda vor 4 Jahren
Ursprung
Commit
3645aec74d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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();