feat: add PostgreSQL migration runner

This commit is contained in:
Josh Creek
2026-09-01 09:21:26 +01:00
parent 4d83ec1525
commit 18888ed520
6 changed files with 133 additions and 13 deletions
+15
View File
@@ -0,0 +1,15 @@
package migrations
import (
"context"
"testing"
)
func TestApplyRejectsMissingDatabaseOrDirectory(t *testing.T) {
if err := Apply(context.Background(), nil, "."); err == nil {
t.Fatal("nil database accepted")
}
if err := Apply(context.Background(), nil, ""); err == nil {
t.Fatal("empty directory accepted")
}
}