function Column::varcharAscii
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/SchemaDefinition/Column.php \Drupal\Core\Database\SchemaDefinition\Column::varcharAscii()
Returns a Column object for a varcharAscii column.
14 calls to Column::varcharAscii()
- BatchStorage::schemaDefinition in core/
lib/ Drupal/ Core/ Batch/ BatchStorage.php - Defines the schema for the batch table.
- comment_schema in core/
modules/ comment/ comment.install - Implements hook_schema().
- dblog_schema in core/
modules/ dblog/ dblog.install - Implements hook_schema().
- DriverSpecificSchemaTestBase::testCreateTableWithGeneratedColumn in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificSchemaTestBase.php - Tests creating a table with a generated column.
- file_schema in core/
modules/ file/ file.install - Implements hook_schema().
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Column.php, line 331
Class
- Column
- Describes a database table's column.
Namespace
Drupal\Core\Database\SchemaDefinitionCode
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.