public function down(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
$select = $this->connection->query("SELECT persistence_object_identifier, properties FROM typo3_typo3cr_domain_model_nodedata");
while ($result = $select->fetch()) {
$properties = json_decode($result['properties'], true);
$nodeData = array('persistence_object_identifier' => $result['persistence_object_identifier'], 'properties' => json_encode($properties, JSON_PRETTY_PRINT | JSON_FORCE_OBJECT));
$sql = 'UPDATE typo3_typo3cr_domain_model_nodedata SET properties = :properties WHERE persistence_object_identifier = :persistence_object_identifier';
$this->connection->executeQuery($sql, $nodeData);
}
}