- prod db already setup with CLI
- fresh staging db
- only main branch on repo
- CLI installed and migrations already setup on repo
- GH actions for release & staging
- staging setup
- take
STAGING_DB_URL - GitHub: set secret
STAGING_DB_URL supabase db remote set $STAGING_DB_URL- create
developbranch locally - push
developto origin - wait for staging deploy
- take
- push new migrations to staging/prod
- create local git branch, e.g.
some-branch - add new migration locally with
supabase db commitorsupabase migrations new - git commit & push to
origin/some-branch - create PR from
origin/some-branchtoorigin/develop/origin/main - merge PR
- wait for deploy
- create local git branch, e.g.
- prod & staging in sync
- main & develop branches
- new migrations deployed & tested on staging first, then deployed to prod
- no setup/teardown of dbs - manually create projects
- manual handling of seed (can't use seed scripts)