shlink/data/migrations_template.txt

28 lines
503 B
Text
Raw Normal View History

<?php
declare(strict_types=1);
namespace <namespace>;
2022-01-10 15:04:16 +03:00
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
2020-06-21 13:29:56 +03:00
final class <className> extends AbstractMigration
{
public function up(Schema $schema): void
{
<up>
}
public function down(Schema $schema): void
{
<down>
}
public function isTransactional(): bool
{
2022-01-10 15:04:16 +03:00
return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform);
}
}