Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/db/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import (
)

func SaveDiff(out, file string, fsys afero.Fs) error {
if len(diff) < 2 {
if len(out) < 2 {
fmt.Fprintln(os.Stderr, "No changes found")
} else if len(file) > 0 {
path := new.GetMigrationPath(file)
return afero.WriteFile(fsys, path, []byte(diff), 0644)
return afero.WriteFile(fsys, path, []byte(out), 0644)
} else {
fmt.Println(diff)
fmt.Println(out)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
KongImage = "library/kong:2.1"
InbucketImage = "inbucket/inbucket:stable"
PostgrestImage = "postgrest/postgrest:v9.0.1.20220802"
DifferImage = "supabase/pgadmin-schema-diff:cli-0.0.4"
DifferImage = "supabase/pgadmin-schema-diff:cli-0.0.5"
PgmetaImage = "supabase/postgres-meta:v0.42.1"
// TODO: Hardcode version once provided upstream.
StudioImage = "supabase/studio:latest"
Expand Down