rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.18k stars 270 forks source link

How do I create logs from the db? #197

Open melvinroest opened 3 years ago

melvinroest commented 3 years ago

I am working in a project where there is a Docker container with the command: sql-migrate up -config/init.yml.

I would like to enable logs, but I can't change this command to postgres -c log_statement=all.

Is this possible to do with sql-migrate? If not, what would I need to hack/extend in order to make this possible?

Or how is it internally being done? I tried finding it, but I couldn't connect the dots.