<?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 Version20220417212948 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 fichier_commission_retraite (id INT AUTO_INCREMENT NOT NULL, liste_commission_id INT DEFAULT NULL, nom_fichier VARCHAR(255) NOT NULL, importe_at DATETIME NOT NULL, etat_traitement INT NOT NULL, traiter_at DATETIME DEFAULT NULL, nombre_ligne INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_2AB35E4E5D8325D3 (liste_commission_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE liste_commission_retraite (id INT AUTO_INCREMENT NOT NULL, regime INT NOT NULL, reference_contrat INT NOT NULL, sous_contrat INT NOT NULL, rsique_or_support VARCHAR(255) NOT NULL, souscripteur VARCHAR(255) NOT NULL, echeance VARCHAR(255) NOT NULL, assiette VARCHAR(255) NOT NULL, type VARCHAR(255) NOT NULL, taux DOUBLE PRECISION NOT NULL, montant DOUBLE PRECISION NOT NULL, fractionnement VARCHAR(255) NOT NULL, ajouter_at DATETIME NOT NULL, etat_traitement INT NOT NULL, etat INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE fichier_commission_retraite ADD CONSTRAINT FK_2AB35E4E5D8325D3 FOREIGN KEY (liste_commission_id) REFERENCES liste_commission_retraite (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE fichier_commission_retraite DROP FOREIGN KEY FK_2AB35E4E5D8325D3');
$this->addSql('DROP TABLE fichier_commission_retraite');
$this->addSql('DROP TABLE liste_commission_retraite');
}
}