mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 09:50:17 -06:00
28 lines
503 B
Plaintext
28 lines
503 B
Plaintext
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace <namespace>;
|
|
|
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
final class <className> extends AbstractMigration
|
|
{
|
|
public function up(Schema $schema): void
|
|
{
|
|
<up>
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
<down>
|
|
}
|
|
|
|
public function isTransactional(): bool
|
|
{
|
|
return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform);
|
|
}
|
|
}
|