column company.createdByContext does not exist

Hello, I was using version 0.40 in self-hosted mode. I wanted to update directly to use version 0.42 because I want to use mail synchronization with Microsoft. I therefore performed a docker compose down, changed the tag, and finally docker compose up with the latest version. Once this was done, I properly executed: docker exec -it twenty-server-1 yarn database:migrate:prod docker exec -it twenty-server-1 yarn command:prod upgrade-0.42 But I have an error that prevents me from using the CRM correctly: column company.createdByContext does not exist Also, the "People, Tasks and Opportunities" tabs no longer display. Can someone help me? I hadn't yet started entering my database, so I have no problem starting with a new database.
16 Replies
Andreas
Andreas2w ago
I have the exact same issue.
charles
charles2w ago
Hi @Tonton78 @Andreas, you'll need to upgrade to 0.41 first (just update it in your docker-compose) and then follow the upgrade guide (see link by Thomas below)
thomast
thomast2w ago
Tonton78
Tonton78OP2w ago
I try to downgrade to 0.41 but the error still here
Andreas
Andreas2w ago
Hi @charles @thomast - I went from 0.35.6 to like 0.42. Do I need to downgrade then to 0.40 before I can upgrade again? Or how should I think here? When I update the TAG to v0.40.0 and then do docker pull I get error also.
Andreas
Andreas2w ago
No description
charles
charles2w ago
twenty-postgres becase twenty-postgres-spilo in 0.40 you can either lock your twenty-postgres on 0.35 or switch to twenty-postgres-spilo make sure to make database dump before all this, just in case I think the simpler is to stay on twenty-postgres on version 0.35, there is no change since and we don't plan to make any
Andreas
Andreas2w ago
I changed the docker-compose.yml to have spilo instead and then did docker compose up -d and got this error.
No description
charles
charles2w ago
yep, it might be a bit technical What's your setup? Is this for production hosting or just play with Twenty? For production, I would actually recommend migrating to an external managed database, it's safer so make a backup and re-import it in another database
Andreas
Andreas2w ago
Using it in my small startup. Do you have time for a short call?
charles
charles2w ago
not right now but we can schedule one
Andreas
Andreas2w ago
Any availability rest of the day? I'm in GMT+1
charles
charles2w ago
we can do 4pm (Paris time), would it work for you?
Andreas
Andreas2w ago
Yes sounds good, I can send an invite? Or should I ping you here? @charles
charles
charles2w ago
yes, let's meet in the #voice channel at 4pm
Andreas
Andreas2w ago
Great!

Did you find this page helpful?