-
Notifications
You must be signed in to change notification settings - Fork 50
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
Accomodate large command results #26
Conversation
Good catch, thanks! We'll also need to have a schema change file to do an ALTER TABLE. |
Also: we could go larger with LONGTEXT as well. |
I thought about it but proposed MEDIUMTEXT since LONGTEXT can be up to 4GB and |
I added schema.00005.sql with the ALTER statement, is that what you mean? |
Co-authored-by: Jesse Peterson <jessepeterson@users.noreply.github.com>
* change command_result.result to `MEDIUMTEXT` * create storage/mysql/schema.00005.sql
* change command_result.result to `MEDIUMTEXT` * create storage/mysql/schema.00005.sql
Hello!
When handling the command result response for InstalledApplicationList, nanomdm issues the following plea:
The InstalledApplicationList response for my current device - with only base Apple apps - is 117,465 characters of base64-endcoded text.
TEXT
support 65,525 characters;MEDIUMTEXT
, 16,777,215 (this corresponds to ~16.78 mb: "L + 3 bytes, where L < 2^24" - https://dev.mysql.com/doc/refman/8.0/en/storage-requirements.html#data-types-storage-reqs-strings)This works with current nanomdm release (in as much as I migrated with
schema.00005.sql
and everything continued to work/InstalledApplicationList
started working). MySQL docs do not have any warnings regarding migrating between text types that I found.