migrations/Version20200409130946.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Migration\AbstractMultiPlatformMigration;
  5. use Doctrine\DBAL\Schema\Schema;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20200409130946 extends AbstractMultiPlatformMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function mySQLUp(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
  19.         $this->addSql('ALTER TABLE u2f_keys CHANGE key_handle key_handle VARCHAR(128) NOT NULL');
  20.     }
  21.     public function mySQLDown(Schema $schema): void
  22.     {
  23.         // this down() migration is auto-generated, please modify it to your needs
  24.         $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
  25.         $this->addSql('ALTER TABLE u2f_keys CHANGE key_handle key_handle VARCHAR(64) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
  26.     }
  27.     public function sqLiteUp(Schema $schema): void
  28.     {
  29.         $this->warnIf(true"Migration not needed for SQLite. Skipping...");
  30.     }
  31.     public function sqLiteDown(Schema $schema): void
  32.     {
  33.         $this->warnIf(true"Migration not needed for SQLite. Skipping...");
  34.     }
  35. }