private function updateColumn(DbField $dbField) : void
    {
        $this->table->changeColumn($dbField->getName(), $dbField->getType(), $dbField->getOptions());
        // set field as unique
        if ($dbField->getUnique()) {
            // avoid creation of duplicate indexes
            if (!$this->table->hasIndex($dbField->getName())) {
                $this->table->addIndex([$dbField->getName()], ['unique' => true]);
            }
        } else {
            if ($this->table->hasIndex($dbField->getName())) {
                $this->table->removeIndexByName($dbField->getName());
            }
        }

        $this->addIndexes($dbField);
    }