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

Run schema migration commands only if not already applied #207

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

eikek
Copy link
Member

@eikek eikek commented Sep 20, 2024

The solr schema can be fetched and it is used to test each command in the schema migration if it had already been applied. If not, the command is run and otherwise it is ignored.

With this change it is possible to drop solr entirely, including schema information. On restart, the schema will be fixed by running those changes that haven't been applied.

The solr schema can be fetched and it is used to test each command in
the schema migration if it had already been applied. If not, the
command is run and otherwise it is ignored.

With this change it is possible to drop solr entirely, including
schema information. On restart, the schema will be fixed by running
those changes that haven't been applied.
@eikek eikek added the enhancement New feature or request label Sep 20, 2024
@eikek eikek marked this pull request as ready for review September 20, 2024 11:32
@eikek eikek changed the title Schema migration run only if not applied Run schema migration commands only if not already applied Sep 20, 2024
@eikek eikek merged commit 73d4876 into development Sep 20, 2024
3 checks passed
@eikek eikek deleted the migration-improvement branch September 20, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant