Skip to content

Commit

Permalink
fix(db diff): change local flag default value
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Jul 5, 2023
1 parent 603de87 commit 2a982b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func init() {
dbDiffCmd.MarkFlagsMutuallyExclusive("use-migra", "use-pgadmin")
diffFlags.StringVar(&dbUrl, "db-url", "", "Diffs local migration files against the database specified by the connection string (must be percent-encoded).")
diffFlags.BoolVar(&linked, "linked", false, "Diffs local migration files against the linked project.")
diffFlags.BoolVar(&local, "local", false, "Diffs local migration files against the local database.")
diffFlags.BoolVar(&local, "local", true, "Diffs local migration files against the local database.")
dbDiffCmd.MarkFlagsMutuallyExclusive("db-url", "linked", "local")
diffFlags.StringVarP(&file, "file", "f", "", "Saves schema diff to a new migration file.")
diffFlags.StringSliceVarP(&schema, "schema", "s", []string{}, "List of schema to include.")
Expand Down

0 comments on commit 2a982b9

Please sign in to comment.