rubenv / sql-migrate

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

Add disable option to avoid creating migration table on getting db map #199

Closed akhorsi closed 2 years ago

akhorsi commented 2 years ago

We want to use your package as a data migration tool, the problem is that our postgresql user has only INSERT, UPDATE and DELETE right. Another team, is responsible database schema and won't handle the data queries.

The only issue with the package is the creation of the migration table before any migration.

So I added a switch to avoid the migration table querie before executing the migration.

othalla commented 2 years ago

Hi @rubenv, any news regarding this PR ?

rubenv commented 2 years ago

Not a big fan of tons and tons of options, but your use-case sounds valid (for a certain kind of disfunctional organization :sweat_smile:). I'll allow it!

Thanks for submitting this!

rubenv commented 2 years ago

Oh and a big sorry for the delay, things have been hectic around here.

othalla commented 2 years ago

@rubenv Thanks a lot !