2014-05-05 10:09:19 +02:00
|
|
|
<?php
|
2017-03-13 16:59:04 +01:00
|
|
|
namespace Neos\Flow\Persistence\Doctrine\Migrations;
|
2014-05-05 10:09:19 +02:00
|
|
|
|
|
|
|
use Doctrine\DBAL\Migrations\AbstractMigration,
|
2016-06-24 19:40:43 +02:00
|
|
|
Doctrine\DBAL\Schema\Schema;
|
2014-05-05 10:09:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Auto-generated Migration: Please modify to your need!
|
|
|
|
*/
|
2016-06-24 19:40:43 +02:00
|
|
|
class Version20140505093853 extends AbstractMigration
|
|
|
|
{
|
2014-05-05 10:09:19 +02:00
|
|
|
|
2016-06-24 19:40:43 +02:00
|
|
|
/**
|
|
|
|
* @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");
|
2014-05-05 10:25:11 +02:00
|
|
|
|
2016-06-24 19:40:43 +02:00
|
|
|
$this->addSql(
|
|
|
|
"CREATE TABLE digicomp_sequence_domain_model_insert (number INT NOT NULL, type VARCHAR(255) NOT NULL, PRIMARY KEY(number, type)) ENGINE = InnoDB"
|
|
|
|
);
|
|
|
|
}
|
2014-05-05 10:09:19 +02:00
|
|
|
|
2016-06-24 19:40:43 +02:00
|
|
|
/**
|
|
|
|
* @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");
|
2014-05-05 10:25:11 +02:00
|
|
|
|
2016-06-24 19:40:43 +02:00
|
|
|
$this->addSql("DROP TABLE digicomp_sequence_domain_model_insert");
|
|
|
|
}
|
|
|
|
}
|