public function DatabaseCacheTagsChecksum::schemaDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php \Drupal\Core\Cache\DatabaseCacheTagsChecksum::schemaDefinition()
Defines the schema for the {cachetags} table.
1 call to DatabaseCacheTagsChecksum::schemaDefinition()
- DatabaseCacheTagsChecksum::ensureTableExists in core/
lib/ Drupal/ Core/ Cache/ DatabaseCacheTagsChecksum.php - Check if the cache tags table exists and create it if not.
File
- core/
lib/ Drupal/ Core/ Cache/ DatabaseCacheTagsChecksum.php, line 172 - Contains \Drupal\Core\Cache\DatabaseCacheTagsChecksum.
Class
- DatabaseCacheTagsChecksum
- Cache tags invalidations checksum implementation that uses the database.
Namespace
Drupal\Core\CacheCode
public function schemaDefinition() {
$schema = array(
'description' => 'Cache table for tracking cache tag invalidations.',
'fields' => array(
'tag' => array(
'description' => 'Namespace-prefixed tag string.',
'type' => 'varchar_ascii',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'invalidations' => array(
'description' => 'Number incremented when the tag is invalidated.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'tag',
),
);
return $schema;
}