Open zwhitchcox opened 6 years ago
running the go code migration.Step(1)
also results in this error. Use migration.Up()
instead.
@kostyaVyrodov what's the full error message? e.g. does it start with
error: first
? Also, is the directory listable and are the files readable by the user you're runningmigrate
with?
I am having this error:first
problem, what can I do to resolve it ?
I'm trying to run the migrations with
migrate -path $filepath -database postgres://postgres:password@db:5432/dev?sslmode=disable up
where$filepath
is a path to my sql files. The contents are1526653772_init_down.sql
and1526653772_init_up.sql
. But it's saying "file does not exist". It's not a file, I know, it's a directory where my sql files are stored, as noted in #9. Is this not the proper argument anymore? if so, what is? what does the path argument describe?