Skip to content

Commit dfbb267

Browse files
author
Nathan E
committed
fix: change the MigrationGenerator dataType of an id column to bigIncrements
1 parent 8a2b7d3 commit dfbb267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/MigrationGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function buildDefinition(Model $model)
5858
foreach ($model->columns() as $column) {
5959
$dataType = $column->dataType();
6060
if ($column->name() === 'id') {
61-
$dataType = 'increments';
61+
$dataType = 'bigIncrements';
6262
} elseif ($column->dataType() === 'id') {
6363
$dataType = 'unsignedBigInteger';
6464
}

0 commit comments

Comments
 (0)