migrations/Version20230711040302.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 Version20230711040302 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql('ALTER TABLE product ADD gsm INT DEFAULT NULL, ADD caliper_microns INT DEFAULT NULL, ADD dimension1 INT DEFAULT NULL, ADD dimension2 INT DEFAULT NULL, ADD broken_rate NUMERIC(10, 2) DEFAULT NULL, ADD packet_rate NUMERIC(10, 2) DEFAULT NULL, ADD packet_qty INT DEFAULT NULL, ADD bulk_rate NUMERIC(10, 2) DEFAULT NULL, ADD bulk_qty VARCHAR(255) DEFAULT NULL, ADD pricing_units INT DEFAULT NULL, ADD sheet_reel_envelope VARCHAR(255) 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 product DROP gsm, DROP caliper_microns, DROP dimension1, DROP dimension2, DROP broken_rate, DROP packet_rate, DROP packet_qty, DROP bulk_rate, DROP bulk_qty, DROP pricing_units, DROP sheet_reel_envelope');
  24.     }
  25. }