<?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 Version20240517024234 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->addSql('CREATE TABLE machine_paper_size_black_only_click_matrix (id INT AUTO_INCREMENT NOT NULL, machine_paper_size_matrix_id INT DEFAULT NULL, start_qty INT NOT NULL, cost NUMERIC(10, 4) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_307EEA57EF050FD3 (machine_paper_size_matrix_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE machine_paper_size_black_only_click_matrix ADD CONSTRAINT FK_307EEA57EF050FD3 FOREIGN KEY (machine_paper_size_matrix_id) REFERENCES machine_paper_size_matrix (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE machine_paper_size_black_only_click_matrix DROP FOREIGN KEY FK_307EEA57EF050FD3');
$this->addSql('DROP TABLE machine_paper_size_black_only_click_matrix');
}
}