mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-15 03:22:03 +00:00
feat: add PostgreSQL migration runner
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user