mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-04 19:39:39 -05:00
fix prisma commands with new json plugin (#328)
* add prisma migration, change prisma commands * remove userAttributes from type definitions
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
+8
@@ -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";
|
||||
@@ -13,7 +13,6 @@ export interface Response {
|
||||
meta: {
|
||||
[key: string]: string;
|
||||
};
|
||||
userAttributes: {}[];
|
||||
}
|
||||
|
||||
export interface QuestionSummary<T extends Question> {
|
||||
|
||||
@@ -58,6 +58,12 @@
|
||||
"VERCEL_URL"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"outputs": []
|
||||
},
|
||||
"db:migrate:dev": {
|
||||
"outputs": []
|
||||
},
|
||||
"db:migrate:deploy": {
|
||||
"outputs": []
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user