From 3ce5b9e0a02436f32254259310cd94f19db641dc Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Fri, 8 Mar 2024 00:33:15 +0530 Subject: [PATCH 1/4] chore: updated code_of_conduct link Signed-off-by: Adithya Krishna --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f70e7425a..5a85e0a81 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ open in devcontainer - Contributor Covenant + Contributor Covenant

From 92f44cd3044d183ec39579c17940384ddac46883 Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Fri, 8 Mar 2024 00:36:18 +0530 Subject: [PATCH 2/4] chore: remove trailing slash Signed-off-by: Adithya Krishna --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a85e0a81..93c6d9f95 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ open in devcontainer - Contributor Covenant + Contributor Covenant

From 59cdf3203e39fc0a7204d2e885c3a9d729f69f1c Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Thu, 7 Mar 2024 20:09:29 +0000 Subject: [PATCH 3/4] fix: add seed script to dx setup --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c25aed514..8ff557e9d 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "commitlint": "commitlint --edit", "clean": "turbo run clean && rimraf node_modules", "d": "npm run dx && npm run dev", - "dx": "npm i && npm run dx:up && npm run prisma:migrate-dev", + "dx": "npm i && npm run dx:up && npm run prisma:migrate-dev && npm run prisma:seed", "dx:up": "docker compose -f docker/development/compose.yml up -d", "dx:down": "docker compose -f docker/development/compose.yml down", "ci": "turbo run test:e2e", From f0fd5506fcd901a8701014b6ea713b40445da20b Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Fri, 8 Mar 2024 12:49:55 +1100 Subject: [PATCH 4/4] fix: skip seeding when running migrate dev When prisma:migrate-dev needs to reset the database it will run the seed script to repopulate data. Now that we've added the seed script to our root setup command we will want to avoid this behaviour since we will end up double seeding the database which currently can cause issues. --- packages/prisma/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/prisma/package.json b/packages/prisma/package.json index 0cd3ed282..59c59bc67 100644 --- a/packages/prisma/package.json +++ b/packages/prisma/package.json @@ -10,7 +10,7 @@ "clean": "rimraf node_modules", "post-install": "prisma generate", "prisma:generate": "prisma generate", - "prisma:migrate-dev": "prisma migrate dev", + "prisma:migrate-dev": "prisma migrate dev --skip-seed", "prisma:migrate-deploy": "prisma migrate deploy", "prisma:seed": "prisma db seed" },