Skip to content

How to use "validate" command? #790

Answered by mfridman
nurwanto-fazz asked this question in Q&A
Discussion options

You must be logged in to vote

This command doesn't need the dialect (mysql) or the connection string. Apologies this isn't documented well.

Here's an example from the root of this repository:

$ goose -dir ./testdata/no-versioning/migrations -v validate
Type   Txn   Up   Down   Name          
────   ───   ──   ────   ────          
sql    ✔     1    1      00001_a.sql   
sql    ✔     1    1      00002_b.sql   
sql    ✔     1    1      00003_c.sql

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nurwanto-fazz
Comment options

@mfridman
Comment options

Answer selected by nurwanto-fazz
@nurwanto-fazz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants