diff --git a/src/Database/Concerns/GeneratesIds.php b/src/Database/Concerns/GeneratesIds.php index bb3eadc9..dab29f3e 100644 --- a/src/Database/Concerns/GeneratesIds.php +++ b/src/Database/Concerns/GeneratesIds.php @@ -26,4 +26,9 @@ trait GeneratesIds { return ! $this->getIncrementing(); } + + public function getKeyType() + { + return $this->shouldGenerateId() ? 'string' : $this->keyType; + } }