2016-06-24 20:40:25 +02:00
|
|
|
<?php
|
2020-03-16 15:44:37 +01:00
|
|
|
|
2017-03-13 16:59:04 +01:00
|
|
|
namespace Neos\Flow\Persistence\Doctrine\Migrations;
|
2016-06-24 20:40:25 +02:00
|
|
|
|
|
|
|
use Doctrine\DBAL\Migrations\AbstractMigration;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
|
|
|
|
|
|
/**
|
2019-12-04 12:48:02 +01:00
|
|
|
* Auto-generated Migration: Please modify to your needs! This block will be used as the migration description if getDescription() is not used.
|
2016-06-24 20:40:25 +02:00
|
|
|
*/
|
|
|
|
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
|
2020-03-11 17:24:48 +01:00
|
|
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
|
2016-06-24 20:40:25 +02:00
|
|
|
|
|
|
|
$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
|
2020-03-11 17:24:48 +01:00
|
|
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
|
2016-06-24 20:40:25 +02:00
|
|
|
|
|
|
|
$this->addSql('DROP INDEX type_idx ON digicomp_sequence_domain_model_insert');
|
|
|
|
}
|
|
|
|
}
|