I check table migrations and the all migrations file is added there. But only the first migration script that actually executed. There is also no error reported, when I try running the migration script directly to postgres, it works.
How to debug this? Thanks
[Update]
So, the previous one is using v1.2.0 Then, I try downgrade it into v1.1.2 and it worked. Not sure what cause the bug tho
[Update]
So, the bug actually on my migration script, I accidentally added a space before -- +migrate Up, So it looks like this
So, i create two migration file using
sql-migrate new <name>
. Then I run thesql-migrate up -env=postgres
with this configI check table
migrations
and the all migrations file is added there. But only the first migration script that actually executed. There is also no error reported, when I try running the migration script directly to postgres, it works.How to debug this? Thanks
[Update] So, the previous one is using v1.2.0 Then, I try downgrade it into
v1.1.2
and it worked. Not sure what cause the bug tho[Update] So, the bug actually on my migration script, I accidentally added a space before
-- +migrate Up
, So it looks like this