migrations/Version20220404211252.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 Version20220404211252 extends AbstractMigration
  7. {
  8.     public function up(Schema $schema): void
  9.     {
  10.         $this->addSql('ALTER TABLE invoice CHANGE sum sum DOUBLE PRECISION NOT NULL, CHANGE shipping_calc shipping_calc DOUBLE PRECISION NOT NULL, CHANGE shipping_user shipping_user DOUBLE PRECISION DEFAULT NULL, CHANGE fee_user fee_user DOUBLE PRECISION DEFAULT NULL');
  11.         $this->addSql('ALTER TABLE lot CHANGE starting_price starting_price DOUBLE PRECISION DEFAULT NULL, CHANGE reserve reserve DOUBLE PRECISION DEFAULT NULL, CHANGE sold sold DOUBLE PRECISION DEFAULT NULL, CHANGE est_low est_low DOUBLE PRECISION DEFAULT NULL, CHANGE est_high est_high DOUBLE PRECISION DEFAULT NULL');
  12.     }
  13.     public function down(Schema $schema): void
  14.     {
  15.         $this->addSql('ALTER TABLE invoice CHANGE sum sum INT NOT NULL, CHANGE shipping_calc shipping_calc INT NOT NULL, CHANGE shipping_user shipping_user INT DEFAULT NULL, CHANGE fee_user fee_user INT DEFAULT NULL');
  16.         $this->addSql('ALTER TABLE lot CHANGE starting_price starting_price INT DEFAULT NULL, CHANGE reserve reserve INT DEFAULT NULL, CHANGE sold sold INT DEFAULT NULL, CHANGE est_low est_low INT DEFAULT NULL, CHANGE est_high est_high INT DEFAULT NULL');
  17.     }
  18. }