sisu-network/deyes

Use go:embed to embed migrations

Closed this issue · 1 comments

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.

I found out later that deyes doesn't actually have any migrations yet, so closing this.

(It does expect a migrations directory, but it accepts an empty directory.)