Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Issue with yarn database:migrate:prod on version 0.43 – duplicate key value error - Twenty
T
Twenty
•
13mo ago
•
31 replies
berrylu
Issue with yarn database:migrate:prod on version 0.43 – duplicate key value error
Hey everyone
,
I
'm encountering an error while running the migration for version 0
.43 with the following command
:
yarn database:migrate:prod
yarn database:migrate:prod
Error Message
:
QueryFailedError
: duplicate key value violates unique constraint
"IndexOnNameObjectMetadataIdAndWorkspaceIdUnique
"
Key
(name
,
"objectMetadataId
"
,
"workspaceId
"
)
=
(body
, afd4a320
-c752
-43e2
-a7ce
-74bf2b4b84f9
, a1efc3dc
-e551
-44bd
-bf80
-b053f3af3ada
) already exists
.
Is there a known fix for this duplicate key issue in 0
.43
?
I had the error on production and also locally
. Using the postgres image and the twenty
-
p
o
s
t
g
r
e
s
:v0
.32 image
.
Thanks in advance for your help
!
Twenty
Join
Building a modern Open Source CRM, powered by the community
5,801
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
error: error: duplicate key value violates unique constraint
T
Twenty / ❓︱help
9mo ago
Try to update .43 to .44 with yarn command:prod upgrade error APP_VERSION is not defined
T
Twenty / ❓︱help
12mo ago
Upgrade error 0.3.2 > 0.3.3 : duplicate key value violates unique constraint
T
Twenty / ❓︱help
2y ago