Create Schema Manager and propagate contexts into the DB calls downstream. Add checks at controller startup and database init for correct schema version and schema migration dirty bit being set.
9 lines
195 B
Makefile
9 lines
195 B
Makefile
# Be sure to place this BEFORE `include` directives, if any.
|
|
THIS_FILE := $(lastword $(MAKEFILE_LIST))
|
|
|
|
migrations:
|
|
go run .
|
|
goimports -w ${GEN_BASEPATH}/internal/db/schema
|
|
|
|
.PHONY: migrations
|