Loading .gitignore +1 −0 Original line number Diff line number Diff line /.env server_conf/ssl/* !/server_conf/ssl/*.dist .idea api/migrations/Version20251105095828.php 0 → 100644 +31 −0 Original line number Diff line number Diff line <?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 Version20251105095828 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('ALTER TABLE cour ADD lib_rde VARCHAR(255) DEFAULT NULL'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE cour DROP lib_rde'); } } api/src/Command/ImportDataCommand.php +2 −2 Original line number Diff line number Diff line Loading @@ -273,8 +273,8 @@ VALUES (nextval('formation_id_seq'), :COD_CMP, :COD_VET, :LIB_WEB_VET, :TYPE_FOR try { $io->info('Inserting data into database'); $pb = $io->createProgressBar(count($courList)); $query = "INSERT INTO cour (id, COD_ELP, COD_CMP, COD_VET, LIB_ELP, LIB_CMT_ELP, NBR_CRD_ELP, S1, S2, LANGUE_ENSEIGNEMENT, NBR_VOL_ELP) VALUES (nextval('cour_id_seq'), :COD_ELP, :COD_CMP, :COD_VET, :LIB_ELP, :LIB_CMT_ELP, :NBR_CRD_ELP, :S1, :S2,:LANGUE_ENSEIGNEMENT, :NBR_VOL_ELP)"; $query = "INSERT INTO cour (id, COD_ELP, COD_CMP, COD_VET, LIB_ELP, LIB_RDE, LIB_CMT_ELP, NBR_CRD_ELP, S1, S2, LANGUE_ENSEIGNEMENT, NBR_VOL_ELP) VALUES (nextval('cour_id_seq'), :COD_ELP, :COD_CMP, :COD_VET, :LIB_ELP, :LIB_RDE, :LIB_CMT_ELP, :NBR_CRD_ELP, :S1, :S2,:LANGUE_ENSEIGNEMENT, :NBR_VOL_ELP)"; // Start the transaction $this->connectionPsql->beginTransaction(); Loading api/src/Entity/Cour.php +5 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,11 @@ class Cour #[Groups('read')] #[ORM\Column(type: "string", length: 60)] private string $LIB_ELP; #Groups('read')] #[ORM\Column(type: "string", length: 255, nullable: true)] private ?string $LIB_RDE = null; #[Groups('read')] #[ORM\Column(type: "string", length: 2000, nullable: true)] private ?string $LIB_CMT_ELP = null; Loading Loading
.gitignore +1 −0 Original line number Diff line number Diff line /.env server_conf/ssl/* !/server_conf/ssl/*.dist .idea
api/migrations/Version20251105095828.php 0 → 100644 +31 −0 Original line number Diff line number Diff line <?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 Version20251105095828 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('ALTER TABLE cour ADD lib_rde VARCHAR(255) DEFAULT NULL'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE cour DROP lib_rde'); } }
api/src/Command/ImportDataCommand.php +2 −2 Original line number Diff line number Diff line Loading @@ -273,8 +273,8 @@ VALUES (nextval('formation_id_seq'), :COD_CMP, :COD_VET, :LIB_WEB_VET, :TYPE_FOR try { $io->info('Inserting data into database'); $pb = $io->createProgressBar(count($courList)); $query = "INSERT INTO cour (id, COD_ELP, COD_CMP, COD_VET, LIB_ELP, LIB_CMT_ELP, NBR_CRD_ELP, S1, S2, LANGUE_ENSEIGNEMENT, NBR_VOL_ELP) VALUES (nextval('cour_id_seq'), :COD_ELP, :COD_CMP, :COD_VET, :LIB_ELP, :LIB_CMT_ELP, :NBR_CRD_ELP, :S1, :S2,:LANGUE_ENSEIGNEMENT, :NBR_VOL_ELP)"; $query = "INSERT INTO cour (id, COD_ELP, COD_CMP, COD_VET, LIB_ELP, LIB_RDE, LIB_CMT_ELP, NBR_CRD_ELP, S1, S2, LANGUE_ENSEIGNEMENT, NBR_VOL_ELP) VALUES (nextval('cour_id_seq'), :COD_ELP, :COD_CMP, :COD_VET, :LIB_ELP, :LIB_RDE, :LIB_CMT_ELP, :NBR_CRD_ELP, :S1, :S2,:LANGUE_ENSEIGNEMENT, :NBR_VOL_ELP)"; // Start the transaction $this->connectionPsql->beginTransaction(); Loading
api/src/Entity/Cour.php +5 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,11 @@ class Cour #[Groups('read')] #[ORM\Column(type: "string", length: 60)] private string $LIB_ELP; #Groups('read')] #[ORM\Column(type: "string", length: 255, nullable: true)] private ?string $LIB_RDE = null; #[Groups('read')] #[ORM\Column(type: "string", length: 2000, nullable: true)] private ?string $LIB_CMT_ELP = null; Loading