migrations/Version20250107134123.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. final class Version20250107134123 extends AbstractMigration
  7. {
  8.     public function getDescription(): string
  9.     {
  10.         return 'Update type for product  with id 3167';
  11.     }
  12.     public function up(Schema $schema): void
  13.     {
  14.         if ('staging' === $_SERVER['APP_SERVER']) {
  15.             $this->addSql('UPDATE product SET type = "product" WHERE product.id = 3167');
  16.         }
  17.     }
  18. }