fix embedded setupMigrations
parent
4ab30365a6
commit
1c635d7a52
|
@ -74,7 +74,7 @@ func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) {
|
||||||
db := sql.OpenDB(connector)
|
db := sql.OpenDB(connector)
|
||||||
|
|
||||||
if l.useMigrations {
|
if l.useMigrations {
|
||||||
err = setupMigrations(l.migrationFiles)
|
err = l.setupMigrations()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error setting up migrations | %w", err)
|
return nil, fmt.Errorf("error setting up migrations | %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue