Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Unknown database type binary requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support it. #57

Closed
fincardy opened this issue Aug 22, 2018 · 3 comments

Comments

@fincardy
Copy link
Contributor

Hey there,

I'm using this alongside Laravel Dusk with SQLite for testing purposes, problem is when I try and run the db migrations I get this error:

Doctrine\DBAL\DBALException: Unknown database type binary requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support it.

I've not really used Dusk or SQLite before and after some digging SQLite doesn't have the "binary" datatype but instead uses "blob".

I checked the SQLiteGrammar file and it specifies binary(16) for the typeUuid - changing this to blob(256) fixes the issue.

Just wondering if it's something I'm doing wrong or should the Grammar file specify the blob data type?

thanks

@brendt
Copy link
Contributor

brendt commented Aug 22, 2018

Yeah, that's probably a bug. Feel free to submit a PR!

@fincardy
Copy link
Contributor Author

Thanks for the quick reply, submitted the PR now :)

@brendt
Copy link
Contributor

brendt commented Aug 23, 2018

It's merged! #58

@brendt brendt closed this as completed Aug 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants