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

Add seed envs #636

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add seed envs #636

wants to merge 1 commit into from

Conversation

marccampbell
Copy link
Contributor

@marccampbell marccampbell commented Dec 18, 2021

Fixes #632

This change allows seed data to be created for a single environment, multiple environments, or all environments.

This adds a new, optional "env" key to the database spec.
Seed data in a table now has an "envs" key which is a string array of matching envs.
If the target database is not in the envs, it will not apply seed data.

This is added because often seed / fixture data is needed in dev environments that doesn't match what's in production

(Note: this does change the seedData key from a map into an array. This is alpha in 0.13 (unreleased) so no migrations or compatibility concerns exist yet.

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

Successfully merging this pull request may close these issues.

Seed data should have "envs" so that we don't have the same seed data in all environments
1 participant