Use long text columns for conversation payloads#623
Open
gracjankubicki wants to merge 1 commit into
Open
Conversation
pushpak1300
reviewed
May 19, 2026
Member
There was a problem hiding this comment.
hey migration provided by the sdk should be forward looking. we probably don't need this migration. we can add it in release notes though.
Contributor
Author
There was a problem hiding this comment.
Sounds good, removed the follow-up migration and left the upgrade path as a release note in the PR description.
abe2f49 to
a859c37
Compare
pushpak1300
approved these changes
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This updates the default database conversation storage schema to use
longTextcolumns for conversation message payloads.The following
agent_conversation_messagescolumns now uselongText:contentattachmentstool_callstool_resultsusagemetaMotivation
Agent conversation messages may contain large payloads, including long assistant responses, attachment metadata, tool calls, tool results, usage information, and provider metadata.
On MySQL-compatible databases, regular
textcolumns can be too small for these payloads. UsinglongTextgives the default conversation storage schema more room for larger AI conversation data without changing the public API.Upgrade note
New installations will receive
longTextpayload columns from the default conversation migration.Applications that have already published and run the previous conversation migration should update their published migration or add an application-level migration to alter the existing
agent_conversation_messagespayload columns fromtexttolongText.Tests
composer test -- tests/Feature/Storage/DatabaseConversationStoreTest.phpcomposer test:lintvendor/bin/phpstan --memory-limit=-1composer test