You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VARBINARY is great for storing ip addresses. VARBINARY field is compatible with ipv4 and ipv6 at the same time, BINARY only with ipv6. This will avoid using VARCHAR.
The text was updated successfully, but these errors were encountered:
Can you just use a varchar field? I don't want to get into adding too many custom fields. You can add the alter table SQL manually in the migration if you really need something custom.
@taylorotwell varchar is slow/unefficient for this, but thanks for the alter table tip in migration. i was altering the table using mysql tools, but that loses sync with the migrations. I will use laravel's alter table instead.
There is actually BINARY, but not VARBINARY.
VARBINARY is great for storing ip addresses. VARBINARY field is compatible with ipv4 and ipv6 at the same time, BINARY only with ipv6. This will avoid using VARCHAR.
The text was updated successfully, but these errors were encountered: