yogthos / migratus

MIGRATE ALL THE THINGS!
642 stars 93 forks source link

Fixes up coded migrations so that the database is not locked when trying to write to it. Fixes yogothos/migratus#203 #209

Closed freshhops closed 2 years ago

freshhops commented 2 years ago

Coded migrations were always opening a connection before calling the code in the migration namespace.

This change makes it configurable in the migration edn. For example,

{:ns migratus-test.db.migrations.test-migration
 :up-fn test-migration
 :down-fn nil
 :transaction? false}
yogthos commented 2 years ago

Looks great, and just published 1.3.6 to Clojars with the fix.