mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-06 23:46:29 +02:00
18 lines
317 B
Go
18 lines
317 B
Go
package schema
|
|
|
|
import (
|
|
"github.com/jmoiron/sqlx"
|
|
"log"
|
|
)
|
|
|
|
// initSchema runs before any migrations are executed. This happens when no other migrations
|
|
// have previously been executed.
|
|
func initSchema(db *sqlx.DB, log *log.Logger) func(*sqlx.DB) error {
|
|
f := func(*sqlx.DB) error {
|
|
|
|
return nil
|
|
}
|
|
|
|
return f
|
|
}
|