1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-07-03 00:58:13 +02:00
Files
example-project
cmd
docker
internal
account
mid
platform
project
schema
init_schema.go
migrations.go
schema.go
signup
user
user_account
tools
.gitignore
.gitlab-ci.yml
README.md
docker-compose.yaml
go.mod
go.sum
sample.env_docker_compose
.gitignore
CONTRIBUTORS
LICENSE
README.md
golang-saas-starter-kit/example-project/internal/schema/init_schema.go

18 lines
317 B
Go
Raw Normal View History

package schema
2019-05-23 14:01:24 -05:00
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
}