Bolt\Storage\Database\Schema\Builder\ContentTables::addContentTypeTableColumns PHP Method

addContentTypeTableColumns() private method

Add the custom columns for the ContentType.
private addContentTypeTableColumns ( Bolt\Storage\Database\Schema\Table\ContentType $tableObj, Doctrine\DBAL\Schema\Table $table, array $fields, Manager $fieldManager )
$tableObj Bolt\Storage\Database\Schema\Table\ContentType
$table Doctrine\DBAL\Schema\Table
$fields array
$fieldManager Bolt\Storage\Field\Manager
    private function addContentTypeTableColumns(ContentType $tableObj, Table $table, array $fields, FieldManager $fieldManager)
    {
        // Check if all the fields are present in the DB.
        foreach ($fields as $fieldName => $values) {
            /** @var \Doctrine\DBAL\Platforms\Keywords\KeywordList $reservedList */
            $reservedList = $this->connection->getDatabasePlatform()->getReservedKeywordsList();
            if ($reservedList->isKeyword($fieldName)) {
                $error = sprintf("You're using '%s' as a field name, but that is a reserved word in %s. Please fix it, and refresh this page.", $fieldName, $this->connection->getDatabasePlatform()->getName());
                $this->flashLogger->error($error);
                continue;
            }
            $this->addContentTypeTableColumn($tableObj, $table, $fieldName, $values, $fieldManager);
        }
    }