Open Sequoia opened 5 years ago
-- +migrate Up CREATE TABLE foo( id uuid PRIMARY KEY ); -- +migrate Down; DROP TABLE foo;
sql-migrate up
psql
\dt
Either: A) Table foo exists, or B) sql-migrate complains about the bad syntax and aborts migration
foo
sql-migrate
Removing the semicolon after Down fixes the issue, but this took me a good bit of trial and error to figure out. I'd send a failing test but I'm very new to Go. Thanks 👍
Down
Reproduction
Input migration
sql-migrate up
psql
\dt
to show tablesExpected outcome
Either: A) Table
foo
exists, or B)sql-migrate
complains about the bad syntax and aborts migrationActual outcome
foo
does not exist