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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...