migrations/Version20240403151944.php line 1

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace DoctrineMigrations;
  3. use Doctrine\DBAL\Schema\Schema;
  4. use Doctrine\Migrations\AbstractMigration;
  5. final class Version20240403151944 extends AbstractMigration
  6. {
  7.     public function getDescription(): string
  8.     {
  9.         return 'Adds sms_last_hour to handle last hour when a full day subscription can be created.';
  10.     }
  11.     public function up(Schema $schema): void
  12.     {
  13.         $this->addSql('ALTER TABLE processor_credentials ADD sms_last_hour TIME DEFAULT NULL');
  14.     }
  15.     public function down(Schema $schema): void
  16.     {
  17.         $this->addSql('ALTER TABLE processor_credentials DROP sms_last_hour');
  18.     }
  19. }