private function alterField($schemaEditor, $fromState, $toState)
    {
        $toModel = $toState->getRegistry()->getModel($this->modelName);
        if ($this->allowMigrateModel($schemaEditor->connection, $toModel)) {
            $fromModel = $fromState->getRegistry()->getModel($this->modelName);
            $fromField = $fromModel->getMeta()->getField($this->name);
            $toField = $toModel->getMeta()->getField($this->name);
            if (false === $this->preserveDefault) {
                $toField->default = $this->field->default;
            }
            $schemaEditor->alterField($fromModel, $fromField, $toField);

            if (false === $this->preserveDefault) {
                $toField->default = NOT_PROVIDED;
            }
        }
    }