mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
23 lines
459 B
Makefile
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
|
|
|
|
|