mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Set key type to string when uuids are used
This commit is contained in:
parent
0d14911538
commit
3ee1e36653
1 changed files with 5 additions and 0 deletions
|
|
@ -26,4 +26,9 @@ trait GeneratesIds
|
||||||
{
|
{
|
||||||
return ! $this->getIncrementing();
|
return ! $this->getIncrementing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getKeyType()
|
||||||
|
{
|
||||||
|
return $this->shouldGenerateId() ? 'string' : $this->keyType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue