improved iconPicker component + other improvements
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Collection" ADD COLUMN "icon" TEXT,
|
||||
ADD COLUMN "iconWeight" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Link" ADD COLUMN "color" TEXT,
|
||||
ADD COLUMN "icon" TEXT,
|
||||
ADD COLUMN "iconWeight" TEXT;
|
||||
@@ -0,0 +1,3 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Collection" ALTER COLUMN "color" DROP NOT NULL,
|
||||
ALTER COLUMN "color" DROP DEFAULT;
|
||||
@@ -94,7 +94,9 @@ model Collection {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
description String @default("")
|
||||
color String @default("#0ea5e9")
|
||||
icon String?
|
||||
iconWeight String?
|
||||
color String?
|
||||
parentId Int?
|
||||
parent Collection? @relation("SubCollections", fields: [parentId], references: [id])
|
||||
subCollections Collection[] @relation("SubCollections")
|
||||
@@ -133,6 +135,9 @@ model Link {
|
||||
collection Collection @relation(fields: [collectionId], references: [id])
|
||||
collectionId Int
|
||||
tags Tag[]
|
||||
icon String?
|
||||
iconWeight String?
|
||||
color String?
|
||||
url String?
|
||||
textContent String?
|
||||
preview String?
|
||||
|
||||
Reference in New Issue
Block a user