Skip to content

Fix: remove unique index from collection name - #48

Merged
eldadfux merged 2 commits into
mainfrom
fix-create-collection-no-unique-index
Aug 5, 2021
Merged

Fix: remove unique index from collection name#48
eldadfux merged 2 commits into
mainfrom
fix-create-collection-no-unique-index

Conversation

@kodumbeats

@kodumbeatskodumbeats commented Aug 5, 2021

Copy link
Copy Markdown
Contributor

The Utopia\Database\Database->create() method created a unique index on collection names. This index has been removed, as the uniqid should be the only unique column.

Unanswered questions:

  • How to properly unit test this?

@eldadfux

Copy link
Copy Markdown
Member

How to properly unit test this?

You can try to update the collection document and see if it works similar to the error that we have now on the create collection endpoint on Appwrite

@eldadfux
eldadfux merged commit 59d9d34 into mainAug 5, 2021
@abnegate
abnegate deleted the fix-create-collection-no-unique-index branch November 23, 2023 01:52
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kodumbeats@eldadfux