2018-10-20 10:00:29 +03:00
|
|
|
<?php
|
2019-10-20 10:53:11 +03:00
|
|
|
|
2018-10-20 10:00:29 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace <namespace>;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
|
2020-06-21 13:29:56 +03:00
|
|
|
final class <className> extends AbstractMigration
|
2018-10-20 10:00:29 +03:00
|
|
|
{
|
|
|
|
public function up(Schema $schema): void
|
|
|
|
{
|
|
|
|
<up>
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down(Schema $schema): void
|
|
|
|
{
|
|
|
|
<down>
|
|
|
|
}
|
2021-10-23 17:02:29 +03:00
|
|
|
|
|
|
|
public function isTransactional(): bool
|
|
|
|
{
|
|
|
|
return $this->connection->getDatabasePlatform()->getName() !== 'mysql';
|
|
|
|
}
|
2018-10-20 10:00:29 +03:00
|
|
|
}
|