Skip to content

Commit

Permalink
update autoIncrement
Browse files Browse the repository at this point in the history
  • Loading branch information
BMTmohammedtaha committed Sep 25, 2023
1 parent 22c20c4 commit d0d730e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Structure/TableTrait/TableNumericTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ trait TableNumericTrait {
public function autoIncrement($column_name = 'id'): self
{
$col = new Column($column_name);
$col->bigInt()->autoIncrement();
$col->bigInt()->primaryKey()->autoIncrement();
$this->addToAttribute('cols', $col->getAttributes());
return $this;
}
Expand Down

0 comments on commit d0d730e

Please sign in to comment.