diff --git a/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php b/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php index b4c6b7832..a93642081 100644 --- a/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php +++ b/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php @@ -52,34 +52,34 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface } protected function prependCruds(ContainerBuilder $container) - { - $container->prependExtensionConfig('chill_main', [ - 'cruds' => [ - [ - 'class' => CSPerson::class, - 'controller' => CSPersonController::class, - 'name' => 'admin_personal_situation', - 'base_role' => 'ROLE_USER', - 'base_path' => '/person/job/', -/* 'form_class' => CSPersonPersonalSituationType::class, - 'actions' => [ - 'index' => [ - 'role' => 'ROLE_USER', - 'template' => '@ChillPerson/CRUD/index.html.twig', - ], - 'new' => [ - 'role' => 'ROLE_USER', - 'template' => '@ChillPerson/CRUD/new.html.twig', - ], - 'edit' => [ - 'role' => 'ROLE_USER', - 'template' => '@ChillPerson/CRUD/edit.html.twig', - ], - ],*/ - ] + { + $container->prependExtensionConfig('chill_main', [ + 'cruds' => [ + [ + 'class' => CSPerson::class, + 'controller' => CSPersonController::class, + 'name' => 'admin_personal_situation', + 'base_role' => 'ROLE_USER', + 'base_path' => '/person/job/', + /* 'form_class' => CSPersonPersonalSituationType::class, + 'actions' => [ + 'index' => [ + 'role' => 'ROLE_USER', + 'template' => '@ChillPerson/CRUD/index.html.twig', + ], + 'new' => [ + 'role' => 'ROLE_USER', + 'template' => '@ChillPerson/CRUD/new.html.twig', + ], + 'edit' => [ + 'role' => 'ROLE_USER', + 'template' => '@ChillPerson/CRUD/edit.html.twig', + ], + ],*/ ], - ]); - } + ], + ]); + } protected function prependRoute(ContainerBuilder $container): void { diff --git a/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php b/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php index 1060e2c69..78f100e43 100644 --- a/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php +++ b/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php @@ -2,6 +2,13 @@ declare(strict_types=1); +/* + * Chill is a software for social workers + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Chill\Migrations\Job; use Doctrine\DBAL\Schema\Schema; diff --git a/src/Bundle/ChillJobBundle/src/migrations/old/Version20200113104411.php b/src/Bundle/ChillJobBundle/src/migrations/old/Version20200113104411.php index e4ed9436e..1fb74f5f0 100644 --- a/src/Bundle/ChillJobBundle/src/migrations/old/Version20200113104411.php +++ b/src/Bundle/ChillJobBundle/src/migrations/old/Version20200113104411.php @@ -37,7 +37,6 @@ final class Version20200113104411 extends AbstractMigration $this->addSql('CREATE TABLE chill_csconnectes.cv_formation (id INT NOT NULL, title TEXT NOT NULL, startDate DATE DEFAULT NULL, endDate DATE DEFAULT NULL, diplomaObtained VARCHAR(255) DEFAULT NULL, diplomaReconnue VARCHAR(50) DEFAULT NULL, organisme TEXT DEFAULT NULL, CV_id INT DEFAULT NULL, PRIMARY KEY(id))'); $this->addSql('CREATE INDEX IDX_20BE09E2AE1799D8 ON chill_csconnectes.cv_formation (CV_id)'); $this->addSql('ALTER TABLE chill_csconnectes.cv_formation ADD CONSTRAINT FK_20BE09E2AE1799D8 FOREIGN KEY (CV_id) REFERENCES chill_csconnectes.cv (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); - } public function down(Schema $schema): void diff --git a/src/Bundle/ChillJobBundle/src/migrations/old/Version20200205132532.php b/src/Bundle/ChillJobBundle/src/migrations/old/Version20200205132532.php index 98870f92d..1372aa308 100644 --- a/src/Bundle/ChillJobBundle/src/migrations/old/Version20200205132532.php +++ b/src/Bundle/ChillJobBundle/src/migrations/old/Version20200205132532.php @@ -24,7 +24,7 @@ final class Version20200205132532 extends AbstractMigration $this->skipIf(true, 'Skipping this old migration. Replaced by migration Version20240424095147'); $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); -// $this->addSql('DROP SEQUENCE report_id_seq CASCADE'); + // $this->addSql('DROP SEQUENCE report_id_seq CASCADE'); $this->addSql('CREATE SEQUENCE chill_csconnectes.rome_appellation_id_seq ' .'INCREMENT BY 1 MINVALUE 1 START 1'); $this->addSql('CREATE SEQUENCE chill_csconnectes.rome_metier_id_seq ' @@ -32,7 +32,7 @@ final class Version20200205132532 extends AbstractMigration $this->addSql('CREATE SEQUENCE chill_csconnectes.projet_professionnel_id_seq ' .'INCREMENT BY 1 MINVALUE 1 START 1'); $this->addSql('CREATE SEQUENCE chill_csconnectes.cv_formation_id_seq ' - . 'INCREMENT BY 1 MINVALUE 1 START 1'); + .'INCREMENT BY 1 MINVALUE 1 START 1'); $this->addSql('CREATE TABLE chill_csconnectes.rome_appellation (' .'id INT NOT NULL, metier_id INT DEFAULT NULL, code VARCHAR(40) NOT NULL, ' .'libelle TEXT NOT NULL, PRIMARY KEY(id))');