Update problem
Hello all
I tried to update from 0.51 and it seems that something gone wrong.
I installed 0.52, 0.53, 0.54, but in the database, the version of my current workspace stay stuck at 0.51.14.
So I went back to 0.52 and I tried to update manually using the usual commands.
The first one always run well :
/app/packages/twenty-server $ yarn database:migrate:prod
But I have an error in DB after the second one:
app/packages/twenty-server $ yarn command:prod upgrade
[Nest] 177 - 06/05/2025, 5:32:18 PM LOG [NestFactory] Starting Nest application...
[Nest] 177 - 06/05/2025, 5:32:18 PM LOG [InstanceLoader] CommandRootModule dependencies initialized
(...)
[Nest] 177 - 06/05/2025, 5:32:18 PM LOG [InstanceLoader] AuthModule dependencies initialized
[Nest] 177 - 06/05/2025, 5:32:18 PM LOG [UpgradeCommand] Running command on workspace 7823fcc0-feff-4ae5-8555-86c42cf82b6c 1/1
Computing new Datasource for cacheKey: 7823fcc0-feff-4ae5-8555-86c42cf82b6c-75 out of 0
[Nest] 177 - 06/05/2025, 5:32:18 PM WARN [UpgradeCommand] Error in workspace 7823fcc0-feff-4ae5-8555-86c42cf82b6c: Field c5e6f5bb-01f9-41eb-9e34-3752a869089e of type RELATION is a many to one relation but does not have a join column name
[Nest] 177 - 06/05/2025, 5:32:18 PM ERROR [UpgradeCommand] Error in workspace 7823fcc0-feff-4ae5-8555-86c42cf82b6c: Field c5e6f5bb-01f9-41eb-9e34-3752a869089e of type RELATION is a many to one relation but does not have a join column name
[Nest] 177 - 06/05/2025, 5:32:18 PM ERROR [UpgradeCommand] undefined
[Nest] 177 - 06/05/2025, 5:32:18 PM LOG [UpgradeCommand] Command completed!
I tried to figure out where is this relation, but no luck so far.
Can you help me to solve this?3 Replies
Hello you need to restore a backup you cannot downgrade a twenty app
Please feel free to share the upgrade error afterwards
Unfortunately, I have a problem in my backups. I tried to fix the DB but no luck, all broken.
Well, I think I'll have to give up.
Hey @greg [iero] very sorry to hear that
What problem exactly do you have in your backups ?
Especially the 0.52 ?