1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 21:34:04 +00:00

Set key type to string when uuids are used

This commit is contained in:
Samuel Štancl 2021-04-22 11:04:06 +02:00 committed by GitHub
parent 0d14911538
commit 3ee1e36653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,4 +26,9 @@ trait GeneratesIds
{ {
return ! $this->getIncrementing(); return ! $this->getIncrementing();
} }
public function getKeyType()
{
return $this->shouldGenerateId() ? 'string' : $this->keyType;
}
} }