AppFlowy/backend/scripts/Makefile
2021-12-01 23:29:51 +08:00

23 lines
459 B
Makefile

.PHONY: init_database add_migrations run_migrations reset_db
init_database:
${ROOT}/init_database.sh
run_docker:
source $(shell pwd)/env.sh && docker-compose up -d db && docker-compose up -d backend
reset_db:
#diesel database reset
sqlx database reset
add_migrations:
#make table="the name of your table" add_migrations
# diesel migration generation $(table)
sqlx migrate add $(table)
run_migrations:
# diesel migration run
sqlx migrate run