You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NFR]: crest init --database: add a database to a project that exists #82
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.
Activity
niden commentedon Nov 28, 2026
Resolved