stripe / pg-schema-diff

Go library for diffing Postgres schemas and generating SQL migrations
MIT License
270 stars 20 forks source link

[CLI] Add flag to disable plan validation #130

Closed bplunkett-stripe closed 2 months ago

bplunkett-stripe commented 2 months ago

Description

Optionally disable plan validation for CLI

Motivation

https://github.com/stripe/pg-schema-diff/issues/129

Testing

Just showing the flag is parsed correctly:

 go run ./cmd/pg-schema-diff plan  --dsn "host=localhost database=postgres" --schema-dir ~/stripe/temp/examplesql  --disable-plan-validation --disable-plan-validation

################################ Generated plan ################################
01. CREATE SCHEMA "some_new_schema";
        -- Statement Timeout: 3s