public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');
$this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET nodetype=REPLACE(nodetype, 'TYPO3.Neos:', 'Neos.Neos:')");
$this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'TYPO3\\\\Media\\\\', 'Neos\\\\Media\\\\') AS jsonb)");
$this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'TYPO3\\\\Flow\\\\', 'Neos\\\\Flow\\\\') AS jsonb)");
$this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'TYPO3\\\\Neos\\\\', 'Neos\\\\Neos\\\\') AS jsonb)");
$this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'TYPO3\\\\Party\\\\', 'Neos\\\\Party\\\\') AS jsonb)");
$this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'TYPO3\\\\TYPO3CR\\\\', 'Neos\\\\ContentRepository\\\\') AS jsonb)");
}