We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create 2 one way one to many relationships to the same collection from separate collections:
For example, using the CLI:
$ appwrite databases createRelationshipAttribute --databaseId relationships --collectionId first --relatedCollectionId third --type oneToMany --key oneToManyThird --twoWay false --twoWayKey related2 key : oneToManyThird type : relationship status : processing error : required : false array : false relatedCollection : third relationType : oneToMany twoWay : false twoWayKey : related2 onDelete : restrict side : parent ✓ Success # steven @ Stevens-MacBook-Pro-2 in ~/Projects/appwrite-projects/localhost-test [9:25:40] $ appwrite databases createRelationshipAttribute --databaseId relationships --collectionId second --relatedCollectionId third --type oneToMany --key oneToManyThird --twoWay false --twoWayKey related2 key : oneToManyThird type : relationship status : processing error : required : false array : false relatedCollection : third relationType : oneToMany twoWay : false twoWayKey : related2 onDelete : restrict side : parent ✓ Success
Maybe an error should be thrown for the 2nd create relationship attribute API call.
API calls are successful, but the attribute ends up as failed, but without any error:
{ "key": "oneToManyThird", "type": "relationship", "status": "failed", "error": "", "required": false, "array": false, "relatedCollection": "third", "relationType": "oneToMany", "twoWay": false, "twoWayKey": "related2", "onDelete": "restrict", "side": "parent" }
Database worker logs show:
appwrite-worker-databases | [Job] Received Job (66326d5ab7a040.66031591). appwrite-worker-databases | SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'related2' appwrite-worker-databases | [Job] (66326d5ab7a040.66031591) successfully run.
Version 1.5.x
Linux
No response
The text was updated successfully, but these errors were encountered:
Related to #8059 because of the behavior with two way keys
Sorry, something went wrong.
No branches or pull requests
👟 Reproduction steps
Create 2 one way one to many relationships to the same collection from separate collections:
For example, using the CLI:
👍 Expected behavior
Maybe an error should be thrown for the 2nd create relationship attribute API call.
👎 Actual Behavior
API calls are successful, but the attribute ends up as failed, but without any error:
Database worker logs show:
🎲 Appwrite version
Version 1.5.x
💻 Operating system
Linux
🧱 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: