-
Notifications
You must be signed in to change notification settings - Fork 66
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
feature: index migrations #382
Comments
Just putting out some thoughts. The need to change the schema will occur when I want my indexer to collect more or fewer data. Most cases will want the indexer to start from Writing migrations will need the dev to know how the indexer stores the data, also there are some nitty bitty things like the object column, data types, and indexed metadata entity table. A lot of stuff to think about. A bit more work on the dev. When there is a schema mismatch, the indexer can erase the old data and start over with a new schema. Maybe a feature to extend the schema keeping the old changes and only allowing new entities, which would be more upgradable in a sense. |
@ap-atul Thanks for the feedback. I would keep in mind:
|
Update on this:
Again, we're just gonna support those few operations (new migrations, migrate up, migrate down) Comand can be something like:
|
migrations/
folder that hasup
anddown
migrations that can be applied to indicesAdditional context
forc index migrate [args] [kwargs]
update to the pluginThe text was updated successfully, but these errors were encountered: