<?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 Version20220603020411 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 orders_other_fee (id INT AUTO_INCREMENT NOT NULL, orders_id INT DEFAULT NULL, name VARCHAR(100) NOT NULL, price INT NOT NULL, entity VARCHAR(100) NOT NULL, entity_id INT NOT NULL, enabled TINYINT(1) NOT NULL, create_date DATETIME NOT NULL, update_date DATETIME DEFAULT NULL, delete_date DATETIME DEFAULT NULL, INDEX IDX_A61D097ECFFE9AD6 (orders_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE orders_other_fee ADD CONSTRAINT FK_A61D097ECFFE9AD6 FOREIGN KEY (orders_id) REFERENCES orders (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE orders_other_fee');
}
}