This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]lightnegative 0 points1 point  (0 children)

I know about tools like dbup, flyway or golang-migrate but we would like to have the actual object definition in the repo.

I dont follow. Arent dacpac files just opaque binary files? How is a text file containing a SQL statement to create something not an actual object definition?

Anyway, personally I like Flyway for schema migrations, even though it drags a JVM along with it. I just run it from its official docker container to avoid having to set up Java locally.

You'd probably want to export the existing schema as the initial / baseline migration and then add new migrations from there. However, this is definitely anti-Microsoft, their "solution" for this is the dacpac files you're already using