fix prisma commands with new json plugin (#328)

* add prisma migration, change prisma commands

* remove userAttributes from type definitions
This commit is contained in:
Matti Nannt
2023-05-31 17:45:47 +02:00
committed by GitHub
parent 965ae44344
commit 0f6210c559
6 changed files with 18 additions and 3 deletions
@@ -49,7 +49,7 @@ To get the project running locally on your machine you need to have the followin
1. Make sure your Docker containers are running. Then let prisma set up the database for you:
```bash
pnpm dlx prisma migrate dev
pnpm db:migrate:dev
```
1. Start the development server of the app:
+1 -1
View File
@@ -10,7 +10,7 @@ COPY .env /app/apps/web/
RUN pnpm install
# Build the project
RUN pnpm dlx prisma generate
RUN pnpm prebuild --filter=web...
RUN pnpm turbo run build --filter=web...
FROM node:18-alpine AS runner
+2
View File
@@ -12,6 +12,8 @@
"scripts": {
"clean": "turbo run clean && rimraf node_modules",
"build": "turbo run build",
"prebuild": "turbo run prebuild",
"db:migrate:dev": "turbo run db:migrate:dev",
"db:migrate:deploy": "turbo run db:migrate:deploy",
"db:migrate:vercel": "turbo run db:migrate:vercel",
"db:push": "turbo run db:push",
@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `userAttributes` on the `Response` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Response" DROP COLUMN "userAttributes";
-1
View File
@@ -13,7 +13,6 @@ export interface Response {
meta: {
[key: string]: string;
};
userAttributes: {}[];
}
export interface QuestionSummary<T extends Question> {
+6
View File
@@ -58,6 +58,12 @@
"VERCEL_URL"
]
},
"prebuild": {
"outputs": []
},
"db:migrate:dev": {
"outputs": []
},
"db:migrate:deploy": {
"outputs": []
},