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
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...