Neos\Flow\Persistence\Doctrine\Migrations\Version20161125125249::down PHP Метод

down() публичный Метод

public down ( Doctrine\DBAL\Schema\Schema $schema ) : void
$schema Doctrine\DBAL\Schema\Schema
Результат void
    public function down(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, 'Neos.Neos:', 'TYPO3.Neos:')");
        $this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'Neos\\\\Media\\\\', 'TYPO3\\\\Media\\\\') AS jsonb)");
        $this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'Neos\\\\Flow\\\\', 'TYPO3\\\\Flow\\\\') AS jsonb)");
        $this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'Neos\\\\Neos\\\\', 'TYPO3\\\\Neos\\\\') AS jsonb)");
        $this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'Neos\\\\Party\\\\', 'TYPO3\\\\Party\\\\') AS jsonb)");
        $this->addSql("UPDATE neos_contentrepository_domain_model_nodedata SET properties=CAST(REPLACE(CAST(properties AS TEXT), 'Neos\\\\ContentRepository\\\\', 'TYPO3\\\\TYPO3CR\\\\') AS jsonb)");
    }
Version20161125125249