drupal-8.update-schema-version-int.php
Same filename in other branches
Database to mimic the installation of the update_test_schema module.
File
-
core/
modules/ system/ tests/ fixtures/ update/ drupal-8.update-schema-version-int.php
View source
<?php
/**
* @file
* Database to mimic the installation of the update_test_schema module.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
// Set the schema version.
$connection->merge('key_value')
->condition('collection', 'system.schema')
->condition('name', 'update_test_schema')
->fields([
'collection' => 'system.schema',
'name' => 'update_test_schema',
'value' => 's:4:"8901";',
])
->execute();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.