Skip to content

Database type lists duplicated across commands instead of centralized #123

@JoshSalway

Description

@JoshSalway

Multiple database commands (DatabaseLogsCommand, DatabaseRestartCommand, DatabaseShellCommand, DatabaseStatusCommand) each maintain their own inline arrays of supported database types:

in_array($databaseType, ['mysql', 'mysql8', 'mariadb'])
in_array($databaseType, ['postgres', 'postgres13'])

This leads to inconsistencies — e.g. DatabaseLogsCommand is missing mariadb and postgres13. The type lists should be centralized in the InteractsWithDatabase trait.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions