migrations/Version20191214233637.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 Version20191214233637 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql''Migration can only be executed safely on \'mysql\'.');
  19.         // $this->addSql(' UPDATE stock_item 
  20.         //                 LEFT JOIN product ON product.id=stock_item.product_id 
  21.         //                 LEFT JOIN product_item ON product_item.product_id=stock_item.product_id 
  22.         //                 LEFT JOIN baseProducts ON baseProducts.id=product_item.stock_item_id
  23.         //                 SET stock_item.minimum_stock_level=baseProducts.minimumStockLevel,
  24.         //                 stock_item.stop_selling_stock_level=baseProducts.stopSellingStockLevel,
  25.         //                 stock_item.perishable=baseProducts.perishable,
  26.         //                 stock_item.current_stock=baseProducts.currentStock');
  27.     }
  28.     public function down(Schema $schema) : void
  29.     {
  30.         // this down() migration is auto-generated, please modify it to your needs
  31.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql''Migration can only be executed safely on \'mysql\'.');
  32.     }
  33. }