Skip to content

Commit 7e5740b

Browse files
fix(media): allow multiples files with same name
1 parent 427c994 commit 7e5740b

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

prisma/mysql-schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ model IntegrationSession {
382382

383383
model Media {
384384
id String @id @default(cuid())
385-
fileName String @unique @db.VarChar(500)
385+
fileName String @db.VarChar(500)
386386
type String @db.VarChar(100)
387387
mimetype String @db.VarChar(100)
388388
createdAt DateTime? @default(dbgenerated("CURRENT_TIMESTAMP")) @db.Timestamp
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX "Media_fileName_key";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Please do not edit this file manually
2-
# It should be added in your version-control system (i.e. Git)
2+
# It should be added in your version-control system (e.g., Git)
33
provider = "postgresql"

prisma/postgresql-schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ model TypebotSetting {
363363

364364
model Media {
365365
id String @id @default(cuid())
366-
fileName String @unique @db.VarChar(500)
366+
fileName String @db.VarChar(500)
367367
type String @db.VarChar(100)
368368
mimetype String @db.VarChar(100)
369369
createdAt DateTime? @default(now()) @db.Date

0 commit comments

Comments
 (0)