Skip to content

Commit

Permalink
Drop unused schema (#889)
Browse files Browse the repository at this point in the history
DesignTokens was removed from schema but without migration. Removed
everything else unused too.

- Tree.presetStyles
- InstanceProps
- DesignTokens
  • Loading branch information
TrySound authored Jan 29, 2023
1 parent b99d4bb commit 1b3365e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- DropForeignKey
ALTER TABLE "DesignTokens" DROP CONSTRAINT "DesignTokens_buildId_fkey";

-- AlterTable
ALTER TABLE "Tree" DROP COLUMN "presetStyles";

-- DropTable
DROP TABLE "DesignTokens";

-- DropTable
DROP TABLE "InstanceProps";
10 changes: 0 additions & 10 deletions packages/prisma-client/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,10 @@ model Tree {
root String
instances String @default("[]")
props String @default("[]")
presetStyles String @default("[]")
styles String @default("[]")
styleSelections String @default("[]")
}

model InstanceProps {
id String @id @default(uuid())
instanceId String
treeId String
props String @default("[]")
@@unique([instanceId, treeId])
}

model Breakpoints {
build Build @relation(fields: [buildId], references: [id])
buildId String @id
Expand Down
1 change: 0 additions & 1 deletion packages/prisma-client/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export { Location } from "@prisma/client";
export type {
InstanceProps,
User,
Breakpoints,
Build,
Expand Down

0 comments on commit 1b3365e

Please sign in to comment.