DigiComp.Sequence/Migrations/Mysql/Version20140505093853.php

47 lines
1.3 KiB
PHP
Raw Permalink Normal View History

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;
use Doctrine\DBAL\Schema\Schema;
2014-05-05 10:09:19 +02:00
/**
* Auto-generated Migration: Please modify to your needs! This block will be used as the migration description if getDescription() is not used.
2014-05-05 10:09:19 +02:00
*/
2016-06-24 19:40:43 +02:00
class Version20140505093853 extends AbstractMigration
{
2014-05-05 10:09:19 +02:00
/**
* @return string
*/
public function getDescription()
{
return '';
}
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))"
2016-06-24 19:40:43 +02:00
);
}
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");
}
}