Skip to content

[NFR]: make:database: MySQL, MariaDB and PostgreSQL #96

Description

@niden

Part of #82. Builds on #95.

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.
  • Tests, the docs and the CHANGELOG.

Activity

  1. added
    enhancement
    on Nov 22, 2026
  2. self-assigned this
    on Nov 22, 2026
  3. added theissue type on Nov 22, 2026
  4. added 6 commits that reference this issue on Nov 27, 2026
  5. niden commented on Nov 27, 2026

    @niden
    SponsorMemberAuthor

    Resolved in #99

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

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions