Skip to content

->nullable() #15

@dgoring

Description

@dgoring

Seems that the sql produced puts null in a string

 ALTER TABLE table CHANGE column column ENUM('Option 1','Option 2') DEFAULT 'NULL' COLLATE `utf8mb4_unicode_ci`;

Minor issue as resolved by adding default(null)

$table->enum('column', ['Option 1', 'Option 2'])->nullable()->default(null)->change();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions