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
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?