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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...