Skip to content

Deploy collection will set database name equal to database Id #47

Closed

Description

@dedonnodev

How to reproduce:

  • From a new project create a database and a collection
  • execute appwrite init collection --all
  • delete database created from appwrite console
  • execute appwrite deploy collection --all

Appwrite CLI deploy the right database and collection, but put in database's name the database's id

Activity

  1. dedonnodev commented on Jul 20, 2022

    @dedonnodev
    Author

    I made a pull request i think with the fix
    #48

  2. dedonnodev commented on Jul 20, 2022

    @dedonnodev
    Author

    Wait a moment, i just understand what happen. If you run "appwrite init collection --all" it doesn't save database name, but only Id.
    I got confused between collection name and database stuff.

    So, my question is, why it doesn't save databseName? Or why it doesn't save database object in "appwrite.json" file as do with collection objects?

    So i'm not sure if my pull request can solve something, seeing appwrite cli do not save database name 🙃

  3. stnguyen90 commented on Jul 20, 2022

    @stnguyen90
    Contributor

    @christyjacob4, would you be able to answer this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions