diff --git a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php index a905b3ffb..eb35aea4d 100644 --- a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php +++ b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php @@ -200,7 +200,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin * [fr] Qualité. */ #[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])] - #[ORM\Column(name: 'profession', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: false)] + #[ORM\Column(name: 'profession', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: false, options: ['default' => ''])] #[Context(normalizationContext: ['groups' => 'docgen:read'], groups: ['docgen:read:3party:parent'])] private string $profession = ''; diff --git a/src/Bundle/ChillThirdPartyBundle/migrations/Version20240918152229.php b/src/Bundle/ChillThirdPartyBundle/migrations/Version20240918152229.php new file mode 100644 index 000000000..cb99c74cd --- /dev/null +++ b/src/Bundle/ChillThirdPartyBundle/migrations/Version20240918152229.php @@ -0,0 +1,26 @@ +addSql('ALTER TABLE chill_3party.third_party DROP profession_id'); + $this->addSql('ALTER TABLE chill_3party.third_party ALTER firstname SET NOT NULL'); + } + + public function down(Schema $schema): void + { + } +}