Skip to content

Seeding Data #19773

Discussion options

You must be logged in to vote

Hi everyone,

I'm excited to share that we have some news on this.
You should now be able to do this via the [remotes.branch-name.db.seed] feature.

For example, if you have a staging branch, you can set up your configuration like this:

[remotes.staging]
project_id = "your-staging-project-ref"

[remotes.staging.db.seed]
sql_paths = [
  "./seeds/staging/01_users.sql",
  "./seeds/staging/02_orders.sql"
]

This configuration tells Supabase branching to configure some seed specifics for the staging branch. Or any other branch.

For more details, please check out the remote config docs and the db seeding docs

Let us know if you have any feedback or questions. Happy coding!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sweatybridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to supabase/cli
4 participants