Neos\Flow\Persistence\Doctrine\Migrations\Version20141118174900::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");
        $this->addSql("ALTER TABLE typo3_media_domain_model_adjustment_abstractimageadjustment DROP CONSTRAINT FK_84416FDCA76D06E6");
        $this->addSql("DROP TABLE typo3_media_domain_model_adjustment_abstractimageadjustment");
        $this->addSql("DROP TABLE typo3_media_domain_model_imagevariant");
        $this->addSql("DROP TABLE typo3_media_domain_model_thumbnail");
        $this->addSql("ALTER TABLE typo3_media_domain_model_image ADD type INT NOT NULL");
        $this->addSql("ALTER TABLE typo3_media_domain_model_image ADD imagevariants TEXT NOT NULL");
        $this->addSql("COMMENT ON COLUMN typo3_media_domain_model_image.imagevariants IS '(DC2Type:array)'");
        $this->addSql("DROP INDEX UNIQ_B8306B8EBC91F416");
        $this->addSql("CREATE INDEX idx_b8306b8ebc91f416 ON typo3_media_domain_model_asset (resource)");
    }
Version20141118174900