Skip to content

Update migration tests docs #1096

Open
Open
@olirice

Description

@olirice

The migration test docs
https://github.com/supabase/postgres/blob/develop/nix/docs/migration-tests.md

Have an example showing how to reference builds by git sha

OLD_GIT_VERSION=...
NEW_GIT_VERSION=...

nix run github:supabase/nix-postgres#migration-test \
  $(nix build "github:supabase/nix-postgres/$OLD_GIT_VERSION#psql_15/bin") \
  $(nix build "github:supabase/nix-postgres/$NEW_GIT_VERSION#psql_15/bin") \
  pg_upgrade

that doesn't function as nix build "github:supabase/nix-postgres/$OLD_GIT_VERSION#psql_15/bin" does not return a nix path as it appears to expect

It does still work if you reference a major version directly

nix run github:supabase/nix-postgres#migration-test \
  15
  15
  pg_upgrade

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions