Closed mynetx closed 1 year ago
Interesting, what mysql version are you running?
ignore me, it was there. looks like a legitimate bug.
Well, patching it like this is definitely possible, but is it supposed to be like this?
if (! in_array(Schema::getColumnType('users', $model->getKey()), ['char', 'guid', 'string'])) {
$this->error('Your users table must use UUIDs for ids in order for this migration to run');
return;
}
Or should there even be an additional check if the char length is 36?
Bug description
In Storing Users in a Database, there's these instructions:
While trying to run the second command, I’m seeing this error:
How to reproduce
Follow the same steps as above.
This is my
User
model:Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
None
Additional details
After running the migrations, the column type of
users.id
isCHAR(36)
. The code inImportUsers.php
expects a GUID or a STRING, however.