migrations/Version20220801074834.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20220801074834 extends AbstractMigration
  10. {
  11.     /**
  12.      * Gets description
  13.      *
  14.      * @return string
  15.      */
  16.     public function getDescription(): string
  17.     {
  18.         return '';
  19.     }
  20.     /**
  21.      * This up() migration is auto-generated, please modify it to your needs
  22.      *
  23.      * @param Schema $schema
  24.      * @return void
  25.      */
  26.     public function up(Schema $schema): void
  27.     {
  28.         $this->addSql('ALTER TABLE scans ADD resolution INT NULL AFTER status');
  29.     }
  30.     /**
  31.      * This down() migration is auto-generated, please modify it to your needs
  32.      *
  33.      * @param Schema $schema
  34.      * @return void
  35.      */
  36.     public function down(Schema $schema): void
  37.     {
  38.         $this->addSql('ALTER TABLE scans DROP resolution');
  39.     }
  40. }