public function update(Connection
$connection): void
{ $playbookGenerator =
new MakeVersionableMigrationHelper($connection);
$tables =
[ 'cms_page',
'cms_section',
'cms_block',
];
foreach ($tables as $table) { $hydratedData =
$playbookGenerator->
getRelationData($table, 'id'
);
$playbook =
$playbookGenerator->
createSql($hydratedData,
$table, 'version_id', Defaults::LIVE_VERSION
);
foreach ($playbook as $query) { $connection->
executeStatement($query);
} } } public function updateDestructive(Connection
$connection): void
{ // Nothing to do here