diff --git a/migrations/Version20250408091726.php b/migrations/Version20250408091726.php index 8226230..526c7c9 100644 --- a/migrations/Version20250408091726.php +++ b/migrations/Version20250408091726.php @@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ -final class Version20241121142432 extends AbstractMigration +final class Version20250408091726 extends AbstractMigration { public function getDescription(): string { @@ -20,12 +20,25 @@ final class Version20241121142432 extends AbstractMigration public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - + $this->addSql(<<<'SQL' + ALTER TABLE intern ADD resume_name TEXT DEFAULT NULL + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE intern ALTER resume TYPE TEXT + SQL); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE SCHEMA public'); + $this->addSql(<<<'SQL' + CREATE SCHEMA public + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE intern DROP resume_name + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE intern ALTER resume TYPE VARCHAR(255) + SQL); } } diff --git a/templates/profile/intern.html.twig b/templates/profile/intern.html.twig index 47305ee..1db6a8a 100644 --- a/templates/profile/intern.html.twig +++ b/templates/profile/intern.html.twig @@ -27,6 +27,14 @@ href="{{ path('app_intern_resume',{id: app.user.id}) }}"> Ajouter / Modifier le CV +
Nom du fichier : {{ app.user.resumeName }}
+ {% endif %} + {% endif %}