From bcadec8b2ef00fffabd2a6a5e90241ec9b300e93 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Wed, 10 Jan 2024 12:43:59 +0100 Subject: [PATCH] make: add `db-push` target Add `make db-push` command to push the schema in `dev_datamodel.prisma` to the database. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index dc57f350d750..248faefa915c 100644 --- a/Makefile +++ b/Makefile @@ -404,3 +404,7 @@ qe-node-api: build target/debug/libquery_engine.node --profile=$(PROFILE) # otherwise macOS gatekeeper may kill the Node.js process when it tries to load the library if [[ "$$(uname -sm)" == "Darwin arm64" ]]; then rm -f $@; fi cp $< $@ + +.PHONY: dbpush +db-push: + cargo run -p test-cli schema-push --force dev_datamodel.prisma