Skip to content

Commit

Permalink
feat: optimize upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wwei-github committed Dec 20, 2023
1 parent 64d7ec9 commit 916b92e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions prisma/migrations/20231220013703_init/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- DropIndex
DROP INDEX "Logos_file_key";

-- AlterTable
ALTER TABLE "LogoNames" ALTER COLUMN "logoType" DROP NOT NULL;
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ datasource db {
model LogoNames {
id Int @id @default(autoincrement())
logoName String @unique
logoType String
logoType String?
website String?
logo Logos[]
downloadTotalNum Int @default(0)
Expand All @@ -23,7 +23,7 @@ model Logos {
id Int @id @default(autoincrement())
logoName LogoNames? @relation(fields: [logoNameId], references: [id])
logoNameId Int?
file String @unique
file String
fileName String?
fileType String?
authorAddress String
Expand Down

0 comments on commit 916b92e

Please sign in to comment.