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