From 9136dc5ad2e38f45d3ceb09ddb578c7876ea3dc3 Mon Sep 17 00:00:00 2001 From: William Perron Date: Fri, 9 Feb 2024 18:33:55 -0500 Subject: [PATCH] oopsie daisy, changed the wrong string --- factory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/factory.go b/factory.go index 8211e9b..062263a 100644 --- a/factory.go +++ b/factory.go @@ -92,7 +92,7 @@ func NewSqliteSDKTraceExporterWithDB(db *sql.DB) (sdktrace.SpanExporter, error) } func doMigrate(db *sql.DB) error { - d, err := iofs.New(migrations, "sqliteexporter") + d, err := iofs.New(migrations, "migrations") if err != nil { return fmt.Errorf("failed to open iofs migration source: %w", err) } @@ -102,7 +102,7 @@ func doMigrate(db *sql.DB) error { return fmt.Errorf("failed to initialize sqlite3 migrate driver: %w", err) } - m, err := migrate.NewWithInstance("iofs", d, "main", dr) + m, err := migrate.NewWithInstance("iofs", d, "sqliteexporter", dr) if err != nil { return fmt.Errorf("failed to initialize db migrate: %w", err) }