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
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...