Skip to content

Commit

Permalink
update migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Dec 27, 2020
1 parent 1b64ad0 commit 3339d6d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Migrations\System;

use Doctrine\DBAL\Schema\Schema;
Expand All @@ -8,7 +10,7 @@
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20180713210336 extends AbstractMigration
final class Version20201227234115 extends AbstractMigration
{
/**
* @param Schema $schema
Expand All @@ -30,4 +32,12 @@ public function down(Schema $schema): void
{
$schema->dropTable('app_todo');
}

/**
* @see https://github.com/doctrine/migrations/issues/1104
*/
public function isTransactional(): bool
{
return false;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Migrations\System;

use Doctrine\DBAL\Schema\Schema;
Expand All @@ -8,7 +10,7 @@
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20180713210701 extends AbstractMigration
final class Version20201227234138 extends AbstractMigration
{
/**
* @param Schema $schema
Expand All @@ -28,4 +30,12 @@ public function down(Schema $schema): void
{
$this->addSql('DELETE FROM app_todo WHERE 1=1');
}

/**
* @see https://github.com/doctrine/migrations/issues/1104
*/
public function isTransactional(): bool
{
return false;
}
}

0 comments on commit 3339d6d

Please sign in to comment.