mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
fixed: use TEXT instead of VARCHAR to store profession
This commit is contained in:
@@ -43,7 +43,7 @@ final class Version20230215175150 extends AbstractMigration implements Container
|
||||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE chill_3party.third_party ADD profession VARCHAR(255) DEFAULT \'\' NOT NULL');
|
||||
$this->addSql('ALTER TABLE chill_3party.third_party ADD profession TEXT DEFAULT \'\' NOT NULL');
|
||||
|
||||
$em = $this->container->get('doctrine.orm.entity_manager');
|
||||
$professions = $em->getRepository(ThirdPartyProfession::class)->findAll();
|
||||
@@ -59,7 +59,5 @@ final class Version20230215175150 extends AbstractMigration implements Container
|
||||
['profession' => Types::STRING, 'id' => Types::INTEGER]
|
||||
);
|
||||
}
|
||||
|
||||
// $this->addSql('ALTER TABLE chill_3party.third_party DROP profession_id');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user