5 * Contains database additions to drupal-8-rc1.bare.standard.php.gz for testing
6 * the upgrade path of https://www.drupal.org/node/2649914.
9 use Drupal\Core\Database\Database;
10 use Drupal\Core\Serialization\Yaml;
12 $connection = Database::getConnection();
14 $views_config = Yaml::decode(file_get_contents(__DIR__ . '/drupal8.views-image-style-dependency-2649914.yml'));
16 $connection->insert('config')
17 ->fields(['collection', 'name', 'data'])
20 'name' => 'views.view.' . $views_config['id'],
21 'data' => serialize($views_config),