From 90288ad92c4da1a6f9a241ba65062deb118323e7 Mon Sep 17 00:00:00 2001 From: Fanch Date: Wed, 31 Jan 2024 12:47:27 +0100 Subject: [PATCH] use prisma deploy as default for migrate, add migrate:dev command --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 548cb4e..e13fddd 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "test:cov": "jest --testPathPattern 'tests/unit/' --coverage", "test:e2e": "jest --config ./test/jest-e2e.json", "generate": "docker exec v3-territory-api sh -c 'npx prisma generate'", - "migrate": "docker exec v3-territory-api sh -c 'npx prisma migrate dev'", + "migrate": "docker exec v3-territory-api sh -c 'npx prisma migrate deploy'", + "migrate:dev": "docker exec v3-territory-api sh -c 'npx prisma migrate dev'", "migrate:test": "dotenv -e .env.test -- npx prisma migrate deploy", "migrate:test:ci": "dotenv -e ci/.env.ci -- npx prisma migrate deploy", "migrate:deploy": "npx prisma migrate deploy"