Repository: jqhph/dcat-admin (language: php)

Issue:
increments和bigIncrements
- Laravel Version: 6.20.44
- PHP Version: 7.4.29
- Dcat Admin Version: 2.2.0-beta

### Description:Laravel默认创建的bigIncrements，而Dcat默认创建的increments，会导致$table->foreign('category_id')->references('id')->on('product_categories') 表外键关联因为类型不对而失败的问题


### Steps To Reproduce:SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint



Discussion / hints:

Fix patch:
diff --git a/src/Scaffold/MigrationCreator.php b/src/Scaffold/MigrationCreator.php
index 99f4740f4..e74b92b0b 100755
--- a/src/Scaffold/MigrationCreator.php
+++ b/src/Scaffold/MigrationCreator.php
@@ -88,7 +88,7 @@ public function buildBluePrint($fields = [], $keyName = 'id', $useTimestamps = t
             throw new AdminException('Table fields can\'t be empty');
         }
 
-        $rows[] = "\$table->increments('$keyName');\n";
+        $rows[] = "\$table->bigIncrements('$keyName');\n";
 
         foreach ($fields as $field) {
             $column = "\$table->{$field['type']}('{$field['name']}')";


Test patch: