public DatabaseLockBackend::schemaDefinition()
Defines the schema for the semaphore table.
File
- core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 209
Class
- DatabaseLockBackend
- Defines the database lock backend. This is the default backend in Drupal.
Namespace
Drupal\Core\Lock
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | public function schemaDefinition() { return [ 'description' => 'Table for holding semaphores, locks, flags, etc. that cannot be stored as state since they must not be cached.' , 'fields' => [ 'name' => [ 'description' => 'Primary Key: Unique name.' , 'type' => 'varchar_ascii' , 'length' => 255, 'not null' => TRUE, 'default' => '' ], 'value' => [ 'description' => 'A value for the semaphore.' , 'type' => 'varchar_ascii' , 'length' => 255, 'not null' => TRUE, 'default' => '' ], 'expire' => [ 'description' => 'A Unix timestamp with microseconds indicating when the semaphore should expire.' , 'type' => 'float' , 'size' => 'big' , 'not null' => TRUE ], ], 'indexes' => [ 'value' => [ 'value' ], 'expire' => [ 'expire' ], ], 'primary key' => [ 'name' ], ]; } |
Please login to continue.