Skip to content

[NFR]: crest init --database: add a database to a project that exists #82

Done
3 of 3 issues completed
Done

Description

@niden

crest new --database=<driver> adds a database to a new project. A project that exists cannot get the same from crest: crest init writes only crest.php.

Scope

  • crest init --database=none|mariadb|mysql|pgsql|sqlite, and its question, as in new.
  • For a project that exists, what new --database adds: the database service in the compose file, the PDO extension, the .env values, storage/database.sqlite for sqlite, the DbProvider and its registration, phalcon/phql for MVC on v6, and the models key for MVC.
  • crest does not overwrite a file that the user changed. It prints what to add by hand.

Open

  • This needs its own design, and maybe more than one issue.
  • Which files of a project that exists crest changes, and which ones it only tells the user about.
  • A project with no compose file, or with a db service already.

Done when

  • The design is accepted, and each of its parts is done.
  • In a project that exists, crest init --database=sqlite gives a working db service.

Follow-up of #54.

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. self-assigned this
    on Nov 21, 2026
  2. added theissue type on Nov 21, 2026
  3. added
    enhancement
    on Nov 21, 2026
  4. moved this from Backlog to Active Sprint in Phalcon v5on Nov 27, 2026
  5. niden commented on Nov 28, 2026

    @niden
    SponsorMemberAuthor

    Resolved

  6. moved this from Active Sprint to Implemented in Phalcon v5on Nov 28, 2026
  7. moved this from Implemented to Released in Phalcon v5on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions