Add the possibility of unknown to the gender entity

This commit is contained in:
Julie Lenaerts 2024-10-31 12:10:35 +01:00
parent 1cadc71d5a
commit 64f3b40694
4 changed files with 7 additions and 4 deletions

View File

@ -16,4 +16,5 @@ enum GenderEnum: string
case MALE = 'man';
case FEMALE = 'woman';
case NEUTRAL = 'neutral';
case UNKNOWN = 'unknown';
}

View File

@ -18,4 +18,5 @@ enum GenderIconEnum: string
case NEUTRAL = 'bi bi-gender-neuter';
case AMBIGUOUS = 'bi bi-gender-ambiguous';
case TRANS = 'bi bi-gender-trans';
case UNKNOWN = 'bi bi-question';
}

View File

@ -34,28 +34,28 @@ final class Version20240926093955 extends AbstractMigration
'{\"fr\": \"homme\", \"nl\": \"man\"}',
true,
'man',
'',
'bi bi-gender-male',
1.0
),
(nextval('chill_main_gender_id_seq'),
'{\"fr\": \"femme\", \"nl\": \"vrouw\"}',
true,
'woman',
'',
'bi bi-gender-female',
1.1
),
(nextval('chill_main_gender_id_seq'),
'{\"fr\": \"neutre\", \"nl\": \"neutraal\"}',
true,
'neutral',
'',
'bi bi-gender-neuter',
1.1
),
(nextval('chill_main_gender_id_seq'),
'{\"fr\": \"inconnu\", \"nl\": \"ongekend\"}',
true,
'unknown',
'',
'bi bi-question',
1.2
)
");

View File

@ -714,5 +714,6 @@ news:
gender:
genderTranslation: traduction grammaticale
not defined: Non défini
pick gender: Choisir une genre