function Column::serial
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/SchemaDefinition/Column.php \Drupal\Core\Database\SchemaDefinition\Column::serial()
Returns a Column object for a serial column.
7 calls to Column::serial()
- BatchStorage::schemaDefinition in core/
lib/ Drupal/ Core/ Batch/ BatchStorage.php - Defines the schema for the batch table.
- DriverSpecificSchemaTestBase::testCreateTableWithGeneratedColumn in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificSchemaTestBase.php - Tests creating a table with a generated column.
- locale_schema in core/
modules/ locale/ locale.install - Implements hook_schema().
- SchemaDefinitionConversionTest::testConvertSchemaDefinition in core/
tests/ Drupal/ Tests/ Core/ Database/ SchemaDefinitionConversionTest.php - Tests Schema::toArray().
- SchemaDefinitionConversionTest::testConvertTableDefinition in core/
tests/ Drupal/ Tests/ Core/ Database/ SchemaDefinitionConversionTest.php - Tests Table::toArray().
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Column.php, line 395
Class
- Column
- Describes a database table's column.
Namespace
Drupal\Core\Database\SchemaDefinitionCode
public static function serial(string $name, ?string $description = NULL, ?ColumnSize $size = NULL) : self {
return self::create(type: ColumnType::Serial, name: $name, description: $description, size: $size);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.