shlink/data/migrations_template.txt

28 lines
503 B
Plaintext
Raw Normal View History

<?php
declare(strict_types=1);
namespace <namespace>;
2022-01-10 06:04:16 -06:00
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
2020-06-21 05:29:56 -05: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 06:04:16 -06:00
return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform);
}
}