Hello, i recently upgraded appwrite to the master branch. I was using self built image for a custom oauth2 provider and self hosting. After building a new image from master branch i also ran migration command:
docker compose exec appwrite migrate
But i am getting database errors(this one when creating a database):
[Error] Timestamp: 2023-07-03T12:18:16+00:00
appwrite | [Error] Method: POST
appwrite | [Error] URL: /v1/databases
appwrite | [Error] Type: Utopia\Database\Exception\Structure
appwrite | [Error] Message: Invalid document structure: Unknown attribute: "enabled"
appwrite | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
appwrite | [Error] Line: 2504
i dont want to reset the database because i have data in them
ah i did not read the note about the migration. I dont remember what version i was on but probably skipped multiple versions while upgrading.
Ya that would definitely break things
so everytime i want to update the appwrite i have to update one by one ?
starting from v0.1 for example, if latest is v0.4 i have to create image for 0.2 first, do migration and then 0.3 and 0.4 ?
this is not good
Correct
alright thanks
[SOLVED] Database problems after upgrade
Recommended threads
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- IMPORTANT! SOC-2 Request Failing
Issue requesting SOC-2. If tried other/private browser as well as filling in optional fields.
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...