Fixes #7030 -- Fix new migrations not extending from abstract class that overrides transactionality.
This commit is contained in:
parent
2ce2b0916a
commit
e9255d2cbe
|
@ -35,6 +35,7 @@ return static function (CallableEventDispatcherInterface $dispatcher) {
|
|||
'table_name' => 'app_migrations',
|
||||
'version_column_length' => 191,
|
||||
],
|
||||
'custom_template' => $environment->getBaseDirectory() . '/util/doctrine_migration.php.tmpl',
|
||||
];
|
||||
|
||||
$buildMigrationConfigurationsEvent = new Event\BuildMigrationConfigurationArray(
|
||||
|
|
|
@ -5,7 +5,6 @@ declare(strict_types=1);
|
|||
namespace App\Entity\Migration;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
final class Version20240319113446 extends AbstractMigration
|
||||
{
|
||||
|
|
|
@ -5,7 +5,6 @@ declare(strict_types=1);
|
|||
namespace App\Entity\Migration;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
final class Version20240319115513 extends AbstractMigration
|
||||
{
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace <namespace>;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use App\Entity\Migrations\AbstractMigration;
|
||||
|
||||
final class <className> extends AbstractMigration
|
||||
{
|
||||
public function getDescription(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
<up>
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
<down>
|
||||
}
|
||||
<override>
|
||||
}
|
Loading…
Reference in New Issue