Skip to content

Issue with newest migration under MySQL #29

@jayo-exe

Description

@jayo-exe

The latest updates added a migration to add a new subject_alternative_names field to the certificates table. However, mySQL does not allow default values for JSON fields, so running this migration can not succeed:

BLOB, TEXT, GEOMETRY or JSON column 'subject_alternative_names' can't have a default value

When modifying the migration file to remove the default value declaration, the migration succeeds, but Certificate Requests fail because the code is expecting an empty array in this field:

TypeError: Argument 8 passed to Daanra\LaravelLetsEncrypt\AcmePhp\Ssl\DistinguishedName::__construct() must be of the type array, null given, called in /home/forge/[redacted]/vendor/daanra/laravel-lets-encrypt/src/Jobs/RequestCertificate.php on line 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions