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 SimplifySearchVectorExpressionCommand #8218

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Oct 30, 2024

Context

This command was introduced to simplify searchVector expressions that were added in v0.31.x for existing workspaces.
New search vector columns have been added later during 0.32 development and should not be migrated, this actually breaks the command because we run sync-metadata before the upgrade command.

The fix removes the throw since this is expected and return early if the search vector was not matched with an object that needs migration.

Test

checkout v0.31.0
reset:db command
checkout this PR
run typeorm migrations
run upgrade 0-32 command

@Weiko Weiko merged commit d19bc2c into main Oct 30, 2024
17 of 18 checks passed
@Weiko Weiko deleted the c--fix-SimplifySearchVectorExpressionCommand branch October 30, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants