Defines an unmapped primary key column.

@param string $columnName

@return void
173010
public function primaryKey(string $columnName)
    {
        $this->primaryKey = $this->buildPrimaryKeyColumn($columnName);
        $this->columns    = [$columnName => $this->primaryKey] + $this->columns;
    }
401573
public function primary($columns, $name = null)
    {
        $columns = is_array($columns) ? $columns : [$columns];

        return $this->table->setPrimaryKey($columns, $name);
    }
65331
public function orderByAsc(string $columnName) : OneToManyRelationDefiner
    {
        $this->orderByColumnNameDirectionMap[$columnName] = Ordering::ASC;

        return $this;
    }
1346510
protected function mapColumName($columnName)
    {

        // query whether or not we can match the column name
        if (isset($this->defaultAddressMapping[$columnName])) {
            return $this->defaultAddressMapping[$columnName];
        }

        // throw an exception if NOT
        throw new \Exception(sprintf('Can\'t map member name to default address column "%s"', $columnName));
    }
785632
public function orderByDesc(string $columnName) : OneToManyRelationDefiner
    {
        $this->orderByColumnNameDirectionMap[$columnName] = Ordering::DESC;

        return $this;
    }
314225
public function insertQuery($tableName)
    {
        $columnNames = self::buildColumn($this->properties);
        $values = self::buildValues($this->properties);

        return "INSERT INTO $tableName ({$columnNames}) VALUES ({$values})";
    }
40393
public function addRelation($columnName)
    {
        $relationName = getRelationName($columnName);

        if (
            ! array_key_exists($relationName, $this->relations) &&
            ! in_array($relationName, $this->relations)
        ) {
            $methodName = camel_case('laratables_'.$relationName.'relation_query');
            if (method_exists($this->class, $methodName)) {
                $this->relations[$relationName] = $this->class::$methodName();

                return;
            }

            $this->relations[] = $relationName;
        }
    }
898506
public function to(string $columnName) : ColumnTypeDefiner
    {
        return new ColumnTypeDefiner(
                $this->definition,
                $this->callback,
                $columnName
        );
    }
290461
public function index($columnName, $indexName = '')
    {
        $indexName = ($indexName !== '') ? $indexName : $columnName;
        $this->schema = 'CREATE INDEX '.strtoupper($indexName).'_INDEX
        ON `'.$this->tableName.'` ('.$columnName.')';

        return $this;
    }
694734
public function hasColumn($columnKey) : bool
    {
        $this->validateColumnKey(__METHOD__, $columnKey);
        $this->loadColumns();

        $columnHash = ValueHasher::hash($columnKey);

        return isset($this->columns[$columnHash]);
    }
320939
public function load(string $columnName)
    {
        $this->columnsToLoad[$columnName] = $this->structure->getColumn($columnName);

        return $this;
    }
1225989
public function removeValidatorForColumn($columnName)
    {
        foreach ($this->validatorList as $key => $validator) {
            if ($validator->getColumnName() == $columnName) {
                unset($this->validatorList[$key]);
            }
        }
    }
259293
public function to(string $columnName) : ColumnTypeDefinerWithVersioning
    {
        return new ColumnTypeDefinerWithVersioning(
                $this->definition,
                $this->callback,
                $this->phpToDbConverter,
                $this->dbToPhpConverter,
                $this->propertyName,
                $columnName,
                $this->ignoreNullabilityTypeMismatch
        );
    }
55874
public function offsetSet($columnName, $value)
    {
        if (!in_array($columnName, static::$_primary)){
            $this->_modifiedData[$columnName] = $value;
        }
        
        parent::offsetSet($columnName, $value);
    }
239103
public function getColumnDefaultValue($tableName, $columnName) {
        $columns = $this->getTableColumns($tableName);
        foreach ($columns as $column) {
            if ($column['Field'] != $columnName)
                continue;
            return $column['Default'];
        }
        throw new \Exception("Column `$columnName` not found in table `$tableName`!");
    }
1173031
public function specifyIdentifier($columnName, $size)
    {
        $this->identifier = $columnName;
        $this->identifierSize = $size;
        $this->setPrimaryKey($columnName);
    }
981790
public function setPrimaryKey( $column )
	{
		if( !strlen( trim( $column ) ) )
			throw new \InvalidArgumentException( 'Primary key column cannot be empty' );
		if( !in_array( $column, $this->columns ) )
			throw new \InvalidArgumentException( 'Column "'.$column.'" is not existing and can not be primary key' );
		$this->primaryKey = $column;
	}