diff --git a/db.go b/db.go index f221148..a710b39 100644 --- a/db.go +++ b/db.go @@ -9,7 +9,7 @@ import ( "time" ) -type Migrations struct { +type migrations struct { name string query string } @@ -34,7 +34,7 @@ func (t *LibSqlDB) setupMigrations() error { return err } - migration := Migrations{ + migration := migrations{ name: filepath.Base(path), query: string(content), } diff --git a/embedded.go b/embedded.go index 6bb336c..99e7b91 100644 --- a/embedded.go +++ b/embedded.go @@ -24,7 +24,7 @@ type LibSqlDB struct { readYourWrites *bool // only used for embedded replica useMigrations bool migrationFiles embed.FS - migrations []Migrations + migrations []migrations } func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) { diff --git a/remote-only.go b/remote-only.go index 350d453..5609191 100644 --- a/remote-only.go +++ b/remote-only.go @@ -23,7 +23,7 @@ type LibSqlDB struct { readYourWrites *bool // only used for embedded replica useMigrations bool migrationFiles embed.FS - migrations []Migrations + migrations []migrations } func NewLibSqlDB(primaryUrl string, opts ...Options) (*LibSqlDB, error) {