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]: make:database: MySQL, MariaDB and PostgreSQL #96
make:database and init --database for a server database: mysql, mariadb and pgsql. Crest changes no file that exists: it prints each part, with the file to put it in. The text of each part comes from the stubs that new uses, so the printed lines and a new project agree.
Scope
The compose service database, with its named volume, and depends_on for the app service.
The Dockerfile lines of the PDO extension (pdo_mysql; libpq-dev and pdo_pgsql).
The .env lines: DB_HOST, DB_PORT, DB_NAME, DB_USERNAME, DB_PASSWORD and DB_PUBLISHED_PORT.
No compose file: no compose and no Dockerfile lines. Crest prints that PHP needs the PDO extension, and that the defaults of DbProvider point to 127.0.0.1 and the default port.
The compose file has a database service: crest prints no service, and a note that names it. The check is on the text (a database: line under services:): crest has no YAML parser.
The app service is named database: crest stops, as new does.
Done when
In a project that exists, each server database gives a working db service after the printed lines.
The database suites run it on MySQL, MariaDB and PostgreSQL.
Activity
[#96] - adding the server databases to make:database and init --database
[#96] - adding tests for the server databases of make:database
[#96] - updating docs and changelog
[#96] - adding the server databases to make:database and init --database
[#96] - adding tests for the server databases of make:database
[#96] - updating docs and changelog
niden commentedon Nov 27, 2026
Resolved in #99