1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-06 23:46:29 +02:00

19 lines
369 B
Go
Raw Permalink Normal View History

package schema
2019-05-23 14:01:24 -05:00
import (
"context"
2019-05-23 14:01:24 -05:00
"log"
2019-08-01 11:34:03 -08:00
"github.com/jmoiron/sqlx"
2019-05-23 14:01:24 -05:00
)
// initSchema runs before any migrations are executed. This happens when no other migrations
// have previously been executed.
func initSchema(ctx context.Context, db *sqlx.DB, log *log.Logger, isUnittest bool) func(*sqlx.DB) error {
2019-08-01 11:34:03 -08:00
f := func(db *sqlx.DB) error {
2019-05-23 14:01:24 -05:00
return nil
}
return f
}