I have been facing some issues (HTTP 500 errors) while creating new collections and attributes. Same issue from both UI and cli.
While creating a new collection:
[Error] Line: 64
[Error] Timestamp: 2023-07-15T09:43:20+00:00
[Error] Method: POST
[Error] URL: /v1/databases/:databaseId/collections
[Error] Type: PDOException
[Error] Message: Unknown column 'documentSecurity' in 'field list'
[Error] File: @swoole-src/library/core/Database/PDOStatementProxy.php
[Error] Line: 64
While adding a new attribute on an existing collection:
[Error] Timestamp: 2023-07-15T09:32:00+00:00
[Error] Method: POST
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/attributes/string
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Unknown attribute: "options"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 2504
I was on appwrite 1.3.1 when I faced this issue. Later I upgraded to 1.3.3 -> 1.3.4 -> 1.3.5 -> 1.3.6 -> 1.3.7. Still seeing the same issue. Any help would be appreciated.
Fixed this by running migration
docker compose exec appwrite migrate
[SOLVED] Unable to create collections or create attributes on existing collections
Fyi, in the future, you can upgrade to the latest patch and run the migration for the latest patch
Recommended threads
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this
- AppwriteException: Invalid query: Query ...
```js console.log(typeof interaction.user.id) console.log(interaction.user.id) const user_check = await TablesDB.listRows({ databaseId: "db", ...