DigiComp.Sequence/Migrations/Mysql/Version20140505093853.php

41 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2014-05-05 10:09:19 +02:00
<?php
namespace TYPO3\Flow\Persistence\Doctrine\Migrations;
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");
}
}