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>;
|
|
|
|
|
2022-01-10 15:04:16 +03:00
|
|
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
2018-10-20 10:00:29 +03:00
|
|
|
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
|
|
|
|
{
|
2022-01-10 15:04:16 +03:00
|
|
|
return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform);
|
2021-10-23 17:02:29 +03:00
|
|
|
}
|
2018-10-20 10:00:29 +03:00
|
|
|
}
|