2014-05-05 10:09:19 +02:00
< ? php
namespace TYPO3\Flow\Persistence\Doctrine\Migrations ;
use Doctrine\DBAL\Migrations\AbstractMigration ,
Doctrine\DBAL\Schema\Schema ;
/**
* Auto - generated Migration : Please modify to your need !
*/
class Version20140505093853 extends AbstractMigration {
/**
* @ 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
$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
}
/**
* @ 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
2014-05-05 10:09:19 +02:00
$this -> addSql ( " DROP TABLE digicomp_sequence_domain_model_insert " );
}
}