migrations/Version20220523085818.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. /**
  6.  * Auto-generated Migration: Please modify to your needs!
  7.  */
  8. final class Version20220523085818 extends AbstractMigration
  9. {
  10.     public function getDescription(): string
  11.     {
  12.         return '';
  13.     }
  14.     public function up(Schema $schema): void
  15.     {
  16.         // this up() migration is auto-generated, please modify it to your needs
  17.         $this->addSql('ALTER TABLE job ADD level VARCHAR(255) NOT NULL, ADD working_hours VARCHAR(255) NOT NULL');
  18.         $this->addSql('ALTER TABLE news CHANGE publish_at publish_at DATETIME NOT NULL');
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $this->addSql('ALTER TABLE job DROP level, DROP working_hours');
  24.         $this->addSql('ALTER TABLE news CHANGE publish_at publish_at DATETIME DEFAULT NULL');
  25.     }
  26. }