Neos\Flow\Persistence\Doctrine\Migrations\Version20150309181635::up PHP Метод

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

public up ( Doctrine\DBAL\Schema\Schema $schema ) : void
$schema Doctrine\DBAL\Schema\Schema
Результат void
    public function up(Schema $schema)
    {
        $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
        $indexes = $this->sm->listTableIndexes('typo3_flow_security_account');
        if (array_key_exists('flow3_identity_typo3_flow3_security_account', $indexes)) {
            $this->addSql("DROP INDEX flow3_identity_typo3_flow3_security_account ON typo3_flow_security_account");
            $this->addSql("CREATE UNIQUE INDEX flow_identity_typo3_flow_security_account ON typo3_flow_security_account (accountidentifier, authenticationprovidername)");
        }
    }
Version20150309181635