-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: migrated database attributes (string ) failed to create index #2596
Comments
Some time ago I wrote a CLI toolset Appwrite Tools that is capable of solving this issue. You can follow README in the repo to see how to use it, but it's pretty much:
You should now have exactly the same data in your collection, and your attribute size is now changed. This CLI tool can also allow you to change types or even names of attributes, but you might need to do some manual changes to the document backup (in CSV) to follow new names/types. |
This issue has been labeled as a 'question', indicating that it requires additional information from the requestor. It has been inactive for 7 days. If no further activity occurs, this issue will be closed in 14 days. |
This issue has been closed due to inactivity. If you still require assistance, please provide the requested information. |
👟 Reproduction steps
After upgrading to 0.12 and migrating my databases (collections), string attributes are converting with length of 65535.
If you decide to add index to the collection for queries with type of KEY and having more than one attribute then you will face a failed index and the index is not gonna work for queries as well.
But, if I define a similar dataTable (collection) with string attributes length 255, it is looking good.
For the first scenario (large string attribute) the database worker having error like this:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes
👍 Expected behavior
👎 Actual Behavior
🎲 Appwrite version
Version 0.11.x
💻 Operating system
MacOS
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: