<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20191214233637 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
// $this->addSql(' UPDATE stock_item
// LEFT JOIN product ON product.id=stock_item.product_id
// LEFT JOIN product_item ON product_item.product_id=stock_item.product_id
// LEFT JOIN baseProducts ON baseProducts.id=product_item.stock_item_id
// SET stock_item.minimum_stock_level=baseProducts.minimumStockLevel,
// stock_item.stop_selling_stock_level=baseProducts.stopSellingStockLevel,
// stock_item.perishable=baseProducts.perishable,
// stock_item.current_stock=baseProducts.currentStock');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
}
}