Skip to content

CLI fails when pushing relationship column #245

@aandrosov-freelancer

Description

@aandrosov-freelancer

👟 Reproduction steps

  1. Go to Appwrite Console
  2. Create new database
  3. Create new table in the database
  4. Create new column with relationship to other table in the table
  5. Pull databases to your Appwrite CLI project config
  6. Push databases to your Appwrite using CLI
  7. See exception:

👍 Expected behavior

Appwrite cli should push tables with relationship columns successfully

👎 Actual Behavior

Throws exception:

AppwriteException: Missing required parameter: "relatedCollectionId"
    at Databases.createRelationshipAttribute (file:///opt/homebrew/Cellar/appwrite/13.0.1/libexec/lib/node_modules/appwrite-cli/node_modules/@appwrite.io/console/dist/esm/sdk.js:5771:19)
    at Attributes.createAttribute (file:///opt/homebrew/Cellar/appwrite/13.0.1/libexec/lib/node_modules/appwrite-cli/dist/lib/commands/utils/attributes.js:229:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async Attributes.createColumns (file:///opt/homebrew/Cellar/appwrite/13.0.1/libexec/lib/node_modules/appwrite-cli/dist/lib/commands/utils/attributes.js:513:17)
    at async Push.pushTables (file:///opt/homebrew/Cellar/appwrite/13.0.1/libexec/lib/node_modules/appwrite-cli/dist/lib/commands/push.js:1080:17)
    at async pushTable (file:///opt/homebrew/Cellar/appwrite/13.0.1/libexec/lib/node_modules/appwrite-cli/dist/lib/commands/push.js:1580:20) {
  code: 0,
  type: '',
  response: ''
}

🎲 Appwrite version

Version 1.8.x

💻 Operating system

MacOS

🧱 Your Environment

I use self-hosted docker image of Appwrite

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions