diff --git a/itou/companies/migrations/0009_remove_company_rdv_insertion_id.py b/itou/companies/migrations/0009_remove_company_rdv_insertion_id.py new file mode 100644 index 0000000000..f36180b09c --- /dev/null +++ b/itou/companies/migrations/0009_remove_company_rdv_insertion_id.py @@ -0,0 +1,16 @@ +# Generated by Django 5.0.9 on 2024-09-12 09:19 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("companies", "0008_auto_20240912_1102"), + ] + + operations = [ + migrations.RemoveField( + model_name="company", + name="rdv_insertion_id", + ), + ] diff --git a/itou/companies/models.py b/itou/companies/models.py index 0c5a7784c4..0757a96ac0 100644 --- a/itou/companies/models.py +++ b/itou/companies/models.py @@ -268,14 +268,6 @@ class Company(AddressMixin, OrganizationAbstract): verbose_name="score de recommandation (ratio de candidatures récentes vs nombre d'offres d'emploi)", null=True ) - rdv_insertion_id = models.IntegerField( - verbose_name="identifiant d'organisation RDV-I", - blank=True, - null=True, - unique=True, - help_text="Permet d'initier la prise de RDV via RDV-I lorsque renseigné.", - error_messages={"unique": "Une entreprise avec cet ID d'organisation RDV-I existe déjà."}, - ) rdv_solidarites_id = models.IntegerField( verbose_name="identifiant d'organisation RDV-S", blank=True, diff --git a/tests/www/apply/__snapshots__/test_process.ambr b/tests/www/apply/__snapshots__/test_process.ambr index 40f121a41d..6606966c4b 100644 --- a/tests/www/apply/__snapshots__/test_process.ambr +++ b/tests/www/apply/__snapshots__/test_process.ambr @@ -117,7 +117,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id", EXISTS (SELECT %s AS "a" @@ -435,7 +434,6 @@ T12."job_applications_blocked_at", T12."convention_id", T12."job_app_score", - T12."rdv_insertion_id", T12."rdv_solidarites_id", "eligibility_geiqeligibilitydiagnosis"."id", "eligibility_geiqeligibilitydiagnosis"."author_id", @@ -510,7 +508,6 @@ T15."job_applications_blocked_at", T15."convention_id", T15."job_app_score", - T15."rdv_insertion_id", T15."rdv_solidarites_id", T16."id", T16."address_line_1", @@ -574,7 +571,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id", T17."id", T17."password", diff --git a/tests/www/employees_views/__snapshots__/test_detail.ambr b/tests/www/employees_views/__snapshots__/test_detail.ambr index c9a6e0826c..c0bf7aa0bd 100644 --- a/tests/www/employees_views/__snapshots__/test_detail.ambr +++ b/tests/www/employees_views/__snapshots__/test_detail.ambr @@ -117,7 +117,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id", EXISTS (SELECT %s AS "a" @@ -355,7 +354,6 @@ T8."job_applications_blocked_at", T8."convention_id", T8."job_app_score", - T8."rdv_insertion_id", T8."rdv_solidarites_id", T9."id", T9."address_line_1", @@ -825,7 +823,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "companies_company" WHERE "companies_company"."id" = %s @@ -1170,7 +1167,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "job_applications_jobapplication" INNER JOIN "companies_company" ON ("job_applications_jobapplication"."to_company_id" = "companies_company"."id") @@ -1654,7 +1650,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id", EXISTS (SELECT %s AS "a" @@ -1892,7 +1887,6 @@ T8."job_applications_blocked_at", T8."convention_id", T8."job_app_score", - T8."rdv_insertion_id", T8."rdv_solidarites_id", T9."id", T9."address_line_1", @@ -2275,7 +2269,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "companies_company" WHERE "companies_company"."id" = %s @@ -2633,7 +2626,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "job_applications_jobapplication" INNER JOIN "companies_company" ON ("job_applications_jobapplication"."to_company_id" = "companies_company"."id") @@ -3306,7 +3298,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id", EXISTS (SELECT %s AS "a" @@ -3544,7 +3535,6 @@ T8."job_applications_blocked_at", T8."convention_id", T8."job_app_score", - T8."rdv_insertion_id", T8."rdv_solidarites_id", T9."id", T9."address_line_1", @@ -4099,7 +4089,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "job_applications_jobapplication" INNER JOIN "companies_company" ON ("job_applications_jobapplication"."to_company_id" = "companies_company"."id") diff --git a/tests/www/job_seekers_views/__snapshots__/test_details.ambr b/tests/www/job_seekers_views/__snapshots__/test_details.ambr index dc04278709..2fff4a99da 100644 --- a/tests/www/job_seekers_views/__snapshots__/test_details.ambr +++ b/tests/www/job_seekers_views/__snapshots__/test_details.ambr @@ -1251,7 +1251,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "eligibility_geiqeligibilitydiagnosis" LEFT OUTER JOIN "companies_company" ON ("eligibility_geiqeligibilitydiagnosis"."author_geiq_id" = "companies_company"."id") @@ -1480,7 +1479,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "eligibility_eligibilitydiagnosis" INNER JOIN "users_user" T3 ON ("eligibility_eligibilitydiagnosis"."author_id" = T3."id") @@ -1663,7 +1661,6 @@ "companies_company"."job_applications_blocked_at", "companies_company"."convention_id", "companies_company"."job_app_score", - "companies_company"."rdv_insertion_id", "companies_company"."rdv_solidarites_id" FROM "job_applications_jobapplication" LEFT OUTER JOIN "users_user" T3 ON ("job_applications_jobapplication"."sender_id" = T3."id")