Skip to content
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

fix: add migration to modify chatflowconfig to longtext for mysql #2151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sickOscar
Copy link

Using big CSV files as document loaders my break mysql chat flow because of the TEXT size of the column and base64 conversion.

Here a migration has been added to change the column type from TEXT to LONGTEXT (4GB of max data)

@HenryHengZJ
Copy link
Contributor

@sickOscar thanks for the fix! However with this PR merged and released, everything is now stored under a local file path instead of a base64 string, hence this fix is no longer needed

@HenryHengZJ
Copy link
Contributor

having said that, if you still have a lot of nodes and using MySQL, you might still face the issue. See #2159.

So we can still proceed with this change


export class ExpandChatFlowConfig1712762777471 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`chat_flow\` MODIFY \`chatbotConfig\` LONGTEXT;`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it chatbotConfig that should be changed? isnt it flowData?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that’s may purpose of prevention of exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] MySQL - Chat flow JSON data is truncated if more than 65,535 characters
4 participants