Renamed package to litemigrate and removed blogging-tools dependency
All checks were successful
/ test (push) Successful in 1m41s

This commit is contained in:
Leon Mika 2024-11-06 22:16:17 +00:00
parent 015a331bc3
commit 4b97028908
5 changed files with 6 additions and 8 deletions

2
db.go
View file

@ -1,4 +1,4 @@
package migration
package litemigrate
import (
"context"

2
go.sum
View file

@ -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=

View file

@ -1,4 +1,4 @@
package migration
package litemigrate
import (
"context"

View file

@ -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)
}))

View file

@ -1,4 +1,4 @@
package migration
package litemigrate
type Option func(m *Migrator)