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
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Delete on cascade from Cloud Function
I'm writing a Python function that deletes a user's main row from a table in my database. This row has relationships with other tables that use cascade deletion...
- 1.9.6 Console handles all array columns ...
When creating or updating a row in the appwrite 1.9.6 web console, the form treats all list columns as a type string. Even if the column is a list of booleans, ...