diff --git a/db.go b/db.go index 986f0d4..251980c 100644 --- a/db.go +++ b/db.go @@ -1,4 +1,4 @@ -package migration +package litemigrate import ( "context" diff --git a/go.sum b/go.sum index a278bba..eb7c7a6 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= -github.com/lmika/blogging-tools v0.0.0-20240630114557-8db2b3aa93e6 h1:WHM70gRzPTKHSKm/wf2kp3HErXzMpmcqfkGjHlhtu1Y= -github.com/lmika/blogging-tools v0.0.0-20240630114557-8db2b3aa93e6/go.mod h1:w4rGqiE0+/FDUNWiIhfPGSPfT948/9Yw+cja12zOb4o= github.com/lmika/gopkgs v0.0.0-20240408110817-a02f6fc67d1f h1:tz68Lhc1oR15HVz69IGbtdukdH0x70kBDEvvj5pTXyE= github.com/lmika/gopkgs v0.0.0-20240408110817-a02f6fc67d1f/go.mod h1:zHQvhjGXRro/Xp2C9dbC+ZUpE0gL4GYW75x1lk7hwzI= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= diff --git a/migration.go b/migration.go index af061bc..2633477 100644 --- a/migration.go +++ b/migration.go @@ -1,4 +1,4 @@ -package migration +package litemigrate import ( "context" diff --git a/migration_test.go b/migration_test.go index 2aac5af..553013f 100644 --- a/migration_test.go +++ b/migration_test.go @@ -1,10 +1,10 @@ -package migration_test +package litemigrate_test import ( "context" "database/sql" "github.com/stretchr/testify/assert" - migration "lmika.dev/pkg/litemigrate" + "lmika.dev/pkg/litemigrate" "os" "path/filepath" "testing" @@ -20,7 +20,7 @@ func TestMigrator_MigrateUp(t *testing.T) { defer closeFn() fileMigrated := make([]string, 0) - migrator := migration.New(testMigration, db, migration.WithPreStepHook(func(filename string) { + migrator := litemigrate.New(testMigration, db, litemigrate.WithPreStepHook(func(filename string) { fileMigrated = append(fileMigrated, filename) })) diff --git a/opts.go b/opts.go index 04f2e6c..5a430bb 100644 --- a/opts.go +++ b/opts.go @@ -1,4 +1,4 @@ -package migration +package litemigrate type Option func(m *Migrator)