소스 검색

Merge pull request #1816 from laradocs/fix-issue-1815

Fix primary key of scaffold
Tall Libra 3 년 전
부모
커밋
f201a48417
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Scaffold/MigrationCreator.php

+ 1 - 1
src/Scaffold/MigrationCreator.php

@@ -88,7 +88,7 @@ class MigrationCreator extends BaseMigrationCreator
             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']}')";