Skip to content

Commit

Permalink
feat(prisma): drop useless column
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyao27 committed Aug 18, 2022
1 parent cb66a18 commit 49e586c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
28 changes: 28 additions & 0 deletions prisma/migrations/20220818023209_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
Warnings:
- You are about to drop the column `actions` on the `Feedback` table. All the data in the column will be lost.
- You are about to drop the column `metadata` on the `Feedback` table. All the data in the column will be lost.
- You are about to drop the column `actions` on the `Metric` table. All the data in the column will be lost.
- You are about to drop the column `metadata` on the `Metric` table. All the data in the column will be lost.
- You are about to drop the column `actions` on the `PageView` table. All the data in the column will be lost.
- You are about to drop the column `metadata` on the `PageView` table. All the data in the column will be lost.
- You are about to drop the column `actions` on the `UserView` table. All the data in the column will be lost.
- You are about to drop the column `metadata` on the `UserView` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Feedback" DROP COLUMN "actions",
DROP COLUMN "metadata";

-- AlterTable
ALTER TABLE "Metric" DROP COLUMN "actions",
DROP COLUMN "metadata";

-- AlterTable
ALTER TABLE "PageView" DROP COLUMN "actions",
DROP COLUMN "metadata";

-- AlterTable
ALTER TABLE "UserView" DROP COLUMN "actions",
DROP COLUMN "metadata";
8 changes: 0 additions & 8 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ model Metric {
sdk Json
device Json
user Json?
actions Json?
metadata Json?
createdAt DateTime @default(now()) @db.Timestamp
CLS Float?
FCP Float?
Expand All @@ -70,8 +68,6 @@ model Feedback {
detail Json
device Json
user Json?
actions Json?
metadata Json?
createdAt DateTime @default(now()) @db.Timestamp
@@index([apiKey])
Expand All @@ -91,8 +87,6 @@ model PageView {
device Json
path String
user Json?
actions Json?
metadata Json?
createdAt DateTime @default(now()) @db.Timestamp
@@index([apiKey])
Expand All @@ -112,8 +106,6 @@ model UserView {
device Json
path String
user Json?
actions Json?
metadata Json?
createdAt DateTime @default(now()) @db.Timestamp
@@index([apiKey])
Expand Down

0 comments on commit 49e586c

Please sign in to comment.