<?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 Version20220407134503 extends AbstractMigration
{
public function getDescription(): string
{
return 'Crée la table ratios_parameters.';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE ratios_parameters (tender_id INT NOT NULL, parameters LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', PRIMARY KEY(tender_id)) DEFAULT CHARACTER SET UTF8 COLLATE `UTF8_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE ratios_parameters ADD CONSTRAINT FK_34ED29BC9245DE54 FOREIGN KEY (tender_id) REFERENCES tender (id)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE ratios_parameters');
}
}