src/CsvMigration.php
private function createColumn(DbField $dbField) : void
    {
        $this->table->addColumn($dbField->getName(), $dbField->getType(), $dbField->getOptions());

        // set id as primary key
        if ('id' === $dbField->getName()) {
            $this->table->addPrimaryKey([
                $dbField->getName(),
            ]);
        }

        $this->addIndexes($dbField, false);
    }
private function createColumn(DbField $dbField) : void
    {
        $this->table->addColumn($dbField->getName(), $dbField->getType(), $dbField->getOptions());

        // set id as primary key
        if ('id' === $dbField->getName()) {
            $this->table->addPrimaryKey([
                $dbField->getName(),
            ]);
        }

        $this->addIndexes($dbField, false);
    }
private function createColumn ( DbField $ dbField ) : void { $ this -> table -> addColumn ( $ dbField -> getName ( ) , $ dbField -> getType ( ) , $ dbField -> getOptions ( ) ) ; // set id as primary key if ( 'id' === $ dbField -> getName ( ) ) { $ this -> table -> addPrimaryKey ( [ $ dbField -> getName ( ) , ] ) ; } $ this -> addIndexes ( $ dbField , false ) ; }
Method used for creating new DB table column.

@param \CsvMigrations\FieldHandlers\DbField $dbField DbField object
@return void
Method used for creating new DB table column .