function Column::varcharAscii

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Database/SchemaDefinition/Column.php \Drupal\Core\Database\SchemaDefinition\Column::varcharAscii()

Returns a Column object for a varcharAscii column.

6 calls to Column::varcharAscii()
BatchStorage::schemaDefinition in core/lib/Drupal/Core/Batch/BatchStorage.php
Defines the schema for the batch table.
hook_schema in core/lib/Drupal/Core/Database/database.api.php
Define the current version of the database schema.
locale_schema in core/modules/locale/locale.install
Implements hook_schema().
SchemaDefinitionConversionTest::testConvertTableDefinition in core/tests/Drupal/Tests/Core/Database/SchemaDefinitionConversionTest.php
Tests Table::toArray().
SchemaDefinitionTest::testInvalidForeignKeyForMismatchingColumnCount in core/tests/Drupal/Tests/Core/Database/SchemaDefinitionTest.php
Tests passing a non Column array member to Table::$columns.

... See full list

File

core/lib/Drupal/Core/Database/SchemaDefinition/Column.php, line 306

Class

Column
Describes a database table's column.

Namespace

Drupal\Core\Database\SchemaDefinition

Code

public static function varcharAscii(string $name, ?string $description = NULL, ?ColumnSize $size = NULL, ?bool $notNull = NULL, StringValue|NullValue|null $default = NULL, ?int $length = NULL, ?bool $binary = NULL) : self {
  return self::create(type: ColumnType::VarcharAscii, name: $name, description: $description, size: $size, notNull: $notNull, default: $default, length: $length, binary: $binary);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.