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

Documentation for database migrations/seeds #10522

Closed
3 tasks done
br41nslug opened this issue Dec 15, 2021 · 1 comment
Closed
3 tasks done

Documentation for database migrations/seeds #10522

br41nslug opened this issue Dec 15, 2021 · 1 comment

Comments

@br41nslug
Copy link
Member

Preflight Checklist

Describe the Bug

The question of how to use migrations and/or seeds with Directus has come up a couple of times in Discord recently. I know Directus is using Knex migration/seeds underwater but the docs mention nothing besides the snapshot feature.
Some documentation of best practices and/or examples for both migrating databases (data and shema) from test/local instances to production instances and implementing database migrations for bringing incremental schema updates to production (or any query i suppose) would be quite useful.

To Reproduce

Errors Shown

No response

What version of Directus are you using?

What version of Node.js are you using?

What database are you using?

What browser are you using?

What operating system are you using?

How are you deploying Directus?

@br41nslug
Copy link
Member Author

Actually sorry somehow i had absolutely missed the https://docs.directus.io/extensions/migrations/ part in the new docs 😬 this combined with snapshots, the export and import (although that could be more user friendly) features pretty much cover it.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants