Skip to content

Commit

Permalink
Revert "Auto set primary key when keyType is string"
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio authored Jan 21, 2024
1 parent 7e68c48 commit 4ae868e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Sushi.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,6 @@ public function createTable(string $tableName, $firstRow)
$type = $schema[$column] ?? $type;

$table->{$type}($column)->nullable();

if ($column === $this->primaryKey) {
$table->primary($this->primaryKey);
}
}

if ($this->usesTimestamps() && (! in_array('updated_at', array_keys($firstRow)) || ! in_array('created_at', array_keys($firstRow)))) {
Expand Down

0 comments on commit 4ae868e

Please sign in to comment.