[GH-ISSUE #486] MySQL schema uses BLOB instead of LONGBLOB #180

Closed
opened 2026-02-27 08:15:42 +03:00 by kerem · 2 comments
Owner

Originally created by @pixelrazor on GitHub (Mar 20, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/486

Discovered when testing #484. MySQL BLOB is limited to 64kb, which is far too small for avatar. It looks like avatar is already configured properly, but it that doesn't appear to be effecting the schema creation.

Originally created by @pixelrazor on GitHub (Mar 20, 2023). Original GitHub issue: https://github.com/lldap/lldap/issues/486 Discovered when testing #484. MySQL BLOB is limited to 64kb, which is far too small for avatar. It looks like [avatar is already configured properly](https://github.com/nitnelave/lldap/blob/b2cfc0ed03b41db25b49a03da31e57582c661c29/server/src/domain/model/users.rs#L59), but it that doesn't appear to be effecting the schema creation.
kerem 2026-02-27 08:15:42 +03:00
Author
Owner

@pixelrazor commented on GitHub (Mar 20, 2023):

Digging more i found that the issue is probable here where we create it without the binary size. Do we need to change that or the v2 migration to do the right type? or maybe add a v3 migration to upgrade that type?

<!-- gh-comment-id:1476803296 --> @pixelrazor commented on GitHub (Mar 20, 2023): Digging more i found that the issue is probable [here](https://github.com/nitnelave/lldap/blob/b2cfc0ed03b41db25b49a03da31e57582c661c29/server/src/domain/sql_migrations.rs#L105) where we create it without the binary size. Do we need to change that or the v2 migration to do the right type? or maybe add a v3 migration to upgrade that type?
Author
Owner

@nitnelave commented on GitHub (Mar 20, 2023):

We'll probably need to do a fancy dance like we do with display_name at the end of the migration file to move the columns around and change the type, using a v3 migration marker.

<!-- gh-comment-id:1476813231 --> @nitnelave commented on GitHub (Mar 20, 2023): We'll probably need to do a fancy dance like we do with display_name at the end of the migration file to move the columns around and change the type, using a v3 migration marker.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#180
No description provided.