protected function UniqueQueueTest::oldSchemaDefinition in Queue Unique 8.2
Schema definition before update 8001.
Return value
array DB table schema.
1 call to UniqueQueueTest::oldSchemaDefinition()
- UniqueQueueTest::testUpdateHook8001 in tests/
src/ Kernel/ UniqueQueueTest.php - Test queue_unique_update_8001().
File
- tests/
src/ Kernel/ UniqueQueueTest.php, line 186
Class
- UniqueQueueTest
- Unique queue kernel test.
Namespace
Drupal\Tests\queue_unique\KernelCode
protected function oldSchemaDefinition() {
$db_queue = $this->container
->get('queue.database')
->get('dummy');
return array_merge_recursive($db_queue
->schemaDefinition(), [
'fields' => [
'md5' => [
'type' => 'char',
'length' => 32,
'not null' => TRUE,
],
],
'unique keys' => [
'unique' => [
'md5',
],
],
]);
}