public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
if ($this->isPartyPackageInstalled()) {
$this->addSql("ALTER TABLE typo3_flow_security_account DROP FOREIGN KEY typo3_flow_security_account_ibfk_1");
$indexes = $this->sm->listTableIndexes('typo3_flow_security_account');
if (array_key_exists('idx_65efb31c89954ee0', $indexes)) {
$this->addSql("DROP INDEX IDX_65EFB31C89954EE0 ON typo3_flow_security_account");
}
}
$this->addSql("ALTER TABLE typo3_flow_security_account DROP party");
}