golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
15.44k stars 1.4k forks source link

file does not exist error #35

Open zwhitchcox opened 6 years ago

zwhitchcox commented 6 years ago

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 are 1526653772_init_down.sql and 1526653772_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?

maxant commented 2 weeks ago

running the go code migration.Step(1) also results in this error. Use migration.Up() instead.

Kingpin98k commented 6 days ago

@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 running migrate with?

I am having this error:first problem, what can I do to resolve it ?