The application should not assume that the migrations exist on disk.
We can use go:embed to embed the migration files into the binary. I am not sure whether golang-migrate can support reading the strings from memory, but if not, we can write the files to a temporary directory.
The application should not assume that the migrations exist on disk.
We can use go:embed to embed the migration files into the binary. I am not sure whether golang-migrate can support reading the strings from memory, but if not, we can write the files to a temporary directory.