Browse Source

Update snowflake migration

Daniel Supernault 6 năm trước cách đây
mục cha
commit
b141b23a3f

+ 5 - 0
database/migrations/2019_03_12_043935_add_snowflakeids_to_users_table.php

@@ -6,6 +6,11 @@ use Illuminate\Database\Migrations\Migration;
 
 class AddSnowflakeidsToUsersTable extends Migration
 {
+    public function __construct()
+    {
+        DB::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
+    }
+
     /**
      * Run the migrations.
      *