TASK: Adding missing index migration
This commit is contained in:
parent
09c8e421fa
commit
fdaec4aaae
1 changed files with 53 additions and 0 deletions
53
Migrations/Mysql/Version20160624203903.php
Normal file
53
Migrations/Mysql/Version20160624203903.php
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
namespace TYPO3\Flow\Persistence\Doctrine\Migrations;
|
||||
|
||||
use Doctrine\DBAL\Migrations\AbstractMigration;
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
|
||||
/**
|
||||
* Auto-generated Migration: Please modify to your needs! This block will be used as the migration description if
|
||||
* getDescription() is not used.
|
||||
*/
|
||||
class Version20160624203903 extends AbstractMigration
|
||||
{
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Schema $schema
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(Schema $schema)
|
||||
{
|
||||
// this up() migration is autogenerated, please modify it to your needs
|
||||
$this->abortIf(
|
||||
$this->connection->getDatabasePlatform()->getName() != 'mysql',
|
||||
'Migration can only be executed safely on "mysql".'
|
||||
);
|
||||
|
||||
$this->addSql('CREATE INDEX type_idx ON digicomp_sequence_domain_model_insert (type)');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Schema $schema
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down(Schema $schema)
|
||||
{
|
||||
// this down() migration is autogenerated, please modify it to your needs
|
||||
$this->abortIf(
|
||||
$this->connection->getDatabasePlatform()->getName() != 'mysql',
|
||||
'Migration can only be executed safely on "mysql".'
|
||||
);
|
||||
|
||||
$this->addSql('DROP INDEX type_idx ON digicomp_sequence_domain_model_insert');
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue