dropNotNull method

  1. @override
void dropNotNull(
  1. String name
)
inherited

MySQL and MariaDB have no ALTER COLUMN DROP NOT NULL, so the column is defined again by a MODIFY, which keeps its type and constraints.

Implementation

@override
void dropNotNull(String name) =>
    _modify(ColumnModification.nullability(name, isNullable: true));