migrations/Version20220527090212.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 Version20220527090212 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 setting RENAME INDEX uniq_9f74b8988a90aba9 TO UNIQ_9F74B8984E645A7E');
  18.         $this->addSql('ALTER TABLE user ADD reset_password_token VARCHAR(255) DEFAULT NULL, ADD reset_password_token_requested_at DATETIME DEFAULT 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 setting RENAME INDEX uniq_9f74b8984e645a7e TO UNIQ_9F74B8988A90ABA9');
  24.         $this->addSql('ALTER TABLE user DROP reset_password_token, DROP reset_password_token_requested_at');
  25.     }
  26. }