rename package
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.petrovv.com/nikola/go-migrate"
|
"git.petrovv.com/nikola/go_schema_migrate"
|
||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/jackc/pgx/v5/pgxpool"
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
)
|
)
|
||||||
@@ -44,7 +44,7 @@ func generateMigrations(schemaDir string) {
|
|||||||
defer db.Close()
|
defer db.Close()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
migrations, err := migrate.GetMigrations(ctx, db, schemaDir)
|
migrations, err := go_schema_migrate.GetMigrations(ctx, db, schemaDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@@ -66,7 +66,7 @@ func applyMigrations(schemaDir string) {
|
|||||||
defer db.Close()
|
defer db.Close()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
migrations, err := migrate.GetMigrations(ctx, db, schemaDir)
|
migrations, err := go_schema_migrate.GetMigrations(ctx, db, schemaDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module git.petrovv.com/nikola/go-migrate
|
module git.petrovv.com/nikola/go_schema_migrate
|
||||||
|
|
||||||
go 1.26.2
|
go 1.26.2
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package migrate
|
package go_schema_migrate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|||||||
Reference in New Issue
Block a user