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

Support migrations for the TinyDB repository #27

Open
lyz-code opened this issue Apr 6, 2021 · 0 comments
Open

Support migrations for the TinyDB repository #27

lyz-code opened this issue Apr 6, 2021 · 0 comments

Comments

@lyz-code
Copy link
Owner

lyz-code commented Apr 6, 2021

Description

Even though TinyDB is meant to be schemaless, we could have a tool like yoyo for sql to do changes in the existent objects to conform to the new schema.

Possible Solution

Create a TinyDB extension that can read a list of files from a migrations directory and execute the steps defined there. Each file will have a hash, and the latest applied can be saved in the _tinydb_migrations table in the database.

I'd copy how yoyo has already solved the issue.

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

1 participant