<?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 Version20241001072949 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 printer_options (printer_id INT UNSIGNED NOT NULL, only_on_invoice TINYINT(1) DEFAULT \'0\' NOT NULL, only_on_delivery TINYINT(1) DEFAULT \'0\' NOT NULL, PRIMARY KEY(printer_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE printer_options ADD CONSTRAINT FK_F4B4008646EC494A FOREIGN KEY (printer_id) REFERENCES shop_receipt_printer (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE printer_options');
}
}