The ddl-planner splits a table migration DDL file generated by hammer. I wrote this command for study.
Usage of ./ddl-planner:
-debug
debug mode
-input string
input file (default "./example.ddl")
-output string
output directory (default "./dist")
-prefix string
prefix for temporal table/column name (default "Tmp_")
-show_steps
show steps in plan
git clone https://github.com/masu-mi/ddl-planner.git
cd ddl-planner
go build .
hammer diff ./example/old.ddl ./example/new.ddl > ./example/hammer-gen.ddl