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.
6 calls to Column::serial()
- BatchStorage::schemaDefinition in core/
lib/ Drupal/ Core/ Batch/ BatchStorage.php - Defines the schema for the batch table.
- 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().
- SchemaDefinitionTest::testInvalidForeignKeyForMismatchingColumnCount in core/
tests/ Drupal/ Tests/ Core/ Database/ SchemaDefinitionTest.php - Tests passing a non Column array member to Table::$columns.
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Column.php, line 378
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.