Skip to content

Commit

Permalink
Merge pull request #456 from jan-stanek/oprava-variabilni-symbol
Browse files Browse the repository at this point in the history
oprava generovani VS (#404)
  • Loading branch information
Jan Staněk authored Dec 22, 2017
2 parents 52d26c5 + 25333b8 commit ff0da82
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions migrations/Version20171222203839.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php declare(strict_types = 1);

namespace Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20171222203839 extends AbstractMigration
{
public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('DROP INDEX UNIQ_E545A0C51F1B251E ON settings');
$this->addSql('ALTER TABLE application DROP application_order');
$this->addSql('DELETE FROM `settings` WHERE `settings`.`item` = \'variable_symbol_type\'');
}

public function down(Schema $schema)
{
}
}

0 comments on commit ff0da82

Please sign in to comment.