Closed rosariop closed 2 years ago
Hey @rosariop,
Could you please try after putting -all in the end of the migrate down command?
e.g echo "y" | docker run --network host migrator -path=/migrations/ -database "mysql://DBUSER:DBPASS@tcp(localhost:3306)/appdb" down -all
Thanks
Describe the Bug When using the docker container it's not possible to migrate down because the "Are you sure you want to apply all down migrations? [y/N]" is instantly answered (with no) and therefore it is not applying downmigrations.
Piping "y" into the command does not work either.
prompts the same
Steps to Reproduce Steps to reproduce the behavior:
COPY /migrations /migrations
1_create_category.down.sql
docker run --network host migrator -path=/migrations/ -database "mysql://DBUSER:DBPASS@tcp(localhost:3306)/appdb" down
the
Are you sure you want to apply all down migrations? [y/N]
prompt is instantly answered withN
! Expected Behavior Waiting for me to answer the prompMigrate Version the latest provided by docker
Loaded Database Drivers mysql / mariadb
Go Version go1.17.5 linux/amd64