2018-10-20 02:00:29 -05:00
|
|
|
<?php
|
2019-10-20 02:53:11 -05:00
|
|
|
|
2018-10-20 02:00:29 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace <namespace>;
|
|
|
|
|
2022-01-10 06:04:16 -06:00
|
|
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
2018-10-20 02:00:29 -05:00
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
|
2020-06-21 05:29:56 -05:00
|
|
|
final class <className> extends AbstractMigration
|
2018-10-20 02:00:29 -05:00
|
|
|
{
|
|
|
|
public function up(Schema $schema): void
|
|
|
|
{
|
|
|
|
<up>
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down(Schema $schema): void
|
|
|
|
{
|
|
|
|
<down>
|
|
|
|
}
|
2021-10-23 09:02:29 -05:00
|
|
|
|
|
|
|
public function isTransactional(): bool
|
|
|
|
{
|
2022-01-10 06:04:16 -06:00
|
|
|
return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform);
|
2021-10-23 09:02:29 -05:00
|
|
|
}
|
2018-10-20 02:00:29 -05:00
|
|
|
}
|