Skip to content

changeColumn() allow nullΒ #123

@joshribakoff

Description

@joshribakoff
$this->changeColumn('website', null, ['default'=>'null'])

This should keep the column type as is but just makes it null-able. Right now you have to specify the current column type for 2nd parameter even if its not changing. I should make it so that passing empty string or null keeps it as is.

Its also finicky about 'default' being set to the string 'null' and not the actual value null.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions