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

Database migrations? #77

Open
CharlesIrvineKC opened this issue Oct 22, 2024 · 1 comment
Open

Database migrations? #77

CharlesIrvineKC opened this issue Oct 22, 2024 · 1 comment

Comments

@CharlesIrvineKC
Copy link

A very general question - does cubdb offer any support for performing data migrations?

If not, can you give any advice on how to implement data migrations?

Thanks

@txssu
Copy link

txssu commented Dec 20, 2024

You can create a custom Migrator module to handle any migrations you need. Start a transaction, fetch the data to be updated, and perform the updates.

Alternatively, you can adopt a lazy migration approach, updating data only when it is accessed.

Lastly, consider storing the schema version as a field and processing the data based on its specific schema.

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

No branches or pull requests

2 participants