소스 검색

Merge pull request #1014 from pixelfed/frontend-ui-refactor

Update snowflake migration
daniel 6 년 전
부모
커밋
16a10a2d4c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      database/migrations/2019_03_12_043935_add_snowflakeids_to_users_table.php

+ 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.
      *