Skip to content

Commit 91aca1d

Browse files
committed
diff: Don't let pg-schema-diff validate because we're hitting dependency-order limitations
1 parent bd532b3 commit 91aca1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/diff.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func Diff(ctx context.Context, postgresConn, fromConn, toConn *pgx.Conn) (string
6969
diff.DBSchemaSource(toDB),
7070
diff.WithTempDbFactory(tempFactory), // Required to validate the generated diff statements.
7171
diff.WithNoConcurrentIndexOps(), // Concurrent index creation is not available in transactions.
72+
diff.WithDoNotValidatePlan(), // See https://github.com/stripe/pg-schema-diff/issues/266
7273
)
7374
if err != nil {
7475
return "", fmt.Errorf("failed to generate diff plan: %w", err)

0 commit comments

Comments
 (0)