Skip to content

Commit

Permalink
Migration error #12
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Jun 22, 2024
1 parent 696e158 commit e99537d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Concerns/GenerateMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function getFields($fields): string
}
}
else {
$finalFields .= '$table->'. ($field->type == 'varchar' ? 'string' : $field->type) .'("'.$field->name.'")';
$finalFields .= '$table->'. ($field->type == 'varchar' ? 'string' : $field->type === 'int' ? 'integer' : $field->type) .'("'.$field->name.'")';
}


Expand Down

0 comments on commit e99537d

Please sign in to comment.