-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binary() field in Schema Builder #1606
Comments
Just do a DB::statement call and run the raw SQL you need to generate your column. |
The only reason I can think of why this isn't implemented is that not all database types support the binary column. If that isn't the case, I would really like to see this added to Laravel. |
I'd definitely agree that this should be supported in some form, primarily for support for UUIDs. |
+1 for adding binary support |
I agree this is a bug, binary isn't the blob in mysql |
+1 |
1 similar comment
+1 |
if you want migrations with more features use https://github.com/cakephp/phinx https://book.cakephp.org/3.0/en/phinx/migrations.html#valid-column-types |
It seems like you can just set the character set to binary as a workaround:
This is actually shown as a real binary column type with a length of 16 in MySQL Workbench. |
I hardly need to create a column of type binary$length) in MySQL but had to assert, that the $fluent->binary() method isn't building a BINARY but a BLOB field.
So what could be a possible sulution for this? Adding a new Fluent Method? In Laravel 3 I was easyly able to hack and dirty change the frameworks code to my needings, but with composer it luckily not possible.
Any ideas guys?
Cheers,
Bodo06
The text was updated successfully, but these errors were encountered: