2019-05-27 02:44:40 -05:00
|
|
|
package schema
|
2019-05-23 14:01:24 -05:00
|
|
|
|
|
|
|
import (
|
2019-08-12 10:26:00 -08:00
|
|
|
"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.
|
2019-08-12 10:26:00 -08:00
|
|
|
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
|
|
|
|
}
|