<?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 Version20220424135927 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 bordereau_commission_retraite (id INT AUTO_INCREMENT NOT NULL, courtier_id INT DEFAULT NULL, generer_at DATETIME NOT NULL, nombre_ligne INT NOT NULL, montant_total DOUBLE PRECISION NOT NULL, nom_bordereau VARCHAR(255) NOT NULL, type VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, created_by INT DEFAULT NULL, etat INT DEFAULT NULL, INDEX IDX_82156F76E82428FD (courtier_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE bordereau_commission_retraite ADD CONSTRAINT FK_82156F76E82428FD FOREIGN KEY (courtier_id) REFERENCES courtier (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE bordereau_commission_retraite');
}
}