public BatchStorage::schemaDefinition()
Defines the schema for the batch table.
File
- core/lib/Drupal/Core/Batch/BatchStorage.php, line 204
Class
Namespace
Drupal\Core\Batch
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 33 34 35 36 | public function schemaDefinition() { return [ 'description' => 'Stores details about batches (processes that run in multiple HTTP requests).' , 'fields' => [ 'bid' => [ 'description' => 'Primary Key: Unique batch ID.' , // This is not a serial column, to allow both progressive and // non-progressive batches. See batch_process(). 'type' => 'int' , 'unsigned' => TRUE, 'not null' => TRUE, ], 'token' => [ 'description' => "A string token generated against the current user's session id and the batch id, used to ensure that only the user who submitted the batch can effectively access it." , 'type' => 'varchar_ascii' , 'length' => 64, 'not null' => TRUE, ], 'timestamp' => [ 'description' => 'A Unix timestamp indicating when this batch was submitted for processing. Stale batches are purged at cron time.' , 'type' => 'int' , 'not null' => TRUE, ], 'batch' => [ 'description' => 'A serialized array containing the processing data for the batch.' , 'type' => 'blob' , 'not null' => FALSE, 'size' => 'big' , ], ], 'primary key' => [ 'bid' ], 'indexes' => [ 'token' => [ 'token' ], ], ]; } |
Please login to continue.