From f3bdf50aa0d2a1ac305fdda20a5512add4dcddf3 Mon Sep 17 00:00:00 2001 From: Martial Maillot Date: Mon, 9 Oct 2023 17:58:03 +0200 Subject: [PATCH] fix(contributions): restauration de la question 3 et suppression de la 5 (#1068) --- .../down.sql | 0 .../up.sql | 55 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 targets/hasura/migrations/default/1696861396000_restore_contribution_question_3_and_delete_5/down.sql create mode 100644 targets/hasura/migrations/default/1696861396000_restore_contribution_question_3_and_delete_5/up.sql diff --git a/targets/hasura/migrations/default/1696861396000_restore_contribution_question_3_and_delete_5/down.sql b/targets/hasura/migrations/default/1696861396000_restore_contribution_question_3_and_delete_5/down.sql new file mode 100644 index 000000000..e69de29bb diff --git a/targets/hasura/migrations/default/1696861396000_restore_contribution_question_3_and_delete_5/up.sql b/targets/hasura/migrations/default/1696861396000_restore_contribution_question_3_and_delete_5/up.sql new file mode 100644 index 000000000..fcea3faa6 --- /dev/null +++ b/targets/hasura/migrations/default/1696861396000_restore_contribution_question_3_and_delete_5/up.sql @@ -0,0 +1,55 @@ +INSERT INTO contribution.questions (id, "content", message_id, "order") VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', 'Quelle est la durée maximale de la période d''essai, sans et avec renouvellement ?', NULL, 3); + +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1596', NULL, NULL, '9fda0fbe-db93-409f-ad89-c7be34a5693d', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1404', NULL, NULL, '9711e65a-0409-4e53-a1e8-0ec6240dae86', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2098', NULL, NULL, '3da4f855-ea85-43f0-a59d-0c144fb64751', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2511', NULL, NULL, '60a99291-8952-4257-af5d-080cf661cd58', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1483', NULL, NULL, '12b7f91c-9369-4481-ab95-f2aad82e708f', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1351', NULL, NULL, '49ec911a-b075-4f48-b1f2-88309510bc3c', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '3043', NULL, NULL, '06c33fe2-75e5-481a-93f4-bfb0e3fbeeac', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0650', NULL, NULL, '46065325-dac7-4da3-bff1-b379dfd03255', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2614', NULL, NULL, 'b5b5dfbd-bf90-4df9-9675-3c8d18412572', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1501', NULL, NULL, '1faffb71-7dd2-4607-80fb-a1b80fec934f', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1672', NULL, NULL, '412a326f-5247-4396-abc7-d62ee0ac0732', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0787', NULL, NULL, 'd4b89db6-5245-4c9e-8296-0247abf82b7a', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1043', NULL, NULL, '429e3907-b9f5-4f9a-8034-dbca36985155', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2941', NULL, NULL, 'b3c3510e-83c5-4a1f-a4d5-3378128cecac', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0086', NULL, NULL, 'e6f5e2b7-b6fa-4c25-9899-1bc931e10661', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0029', NULL, NULL, 'a8496b3a-e482-43f4-b6c0-e49c482f5a05', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0275', NULL, NULL, 'a9e327f3-210c-48d2-9b62-7f227a5fca89', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1597', NULL, NULL, '92db3732-ae4d-4da5-9c3d-63d05050e6f0', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1518', NULL, NULL, '6544c764-270d-4044-88ab-099ff9ffe53a', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0176', NULL, NULL, '593212e3-dcd6-4151-8b44-47b08437a55e', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1979', NULL, NULL, 'f66118b8-f147-413b-ad1d-c38901b5f2a4', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1505', NULL, NULL, 'fe0d39a5-f136-4d51-8ceb-13018ccea9ec', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1996', NULL, NULL, '2b0fd17e-e9b1-43e1-9b62-e281bda171aa', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '3239', NULL, NULL, '245ddf7d-6e73-4cc3-ad9d-01ca901be238', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1606', NULL, NULL, '826b1c1c-1729-4207-88c0-b2dd21c38433', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1147', NULL, NULL, '5150498d-8187-41c0-8e1f-ee9c5fe28e34', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0044', NULL, NULL, '9fc3c878-20e0-4efd-99b2-487a421c36dc', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2264', NULL, NULL, '07b97b60-5870-4eeb-99cf-6c4213d05484', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1266', NULL, NULL, 'bd6d3ebe-2797-435c-a2f1-73e1d34e68ba', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0675', NULL, NULL, '10743a52-d7ef-4768-ac36-9ba140ed29d0', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0573', NULL, NULL, 'c85e2f37-b585-469b-877e-30b98432da2d', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1090', NULL, NULL, 'cf781b7d-d112-4cf4-a877-5e2120ec6368', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0016', NULL, NULL, 'cba3dffb-3349-4652-a51f-7ab21de29080', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2216', NULL, NULL, '27794167-f0c6-4a05-a687-a1349742d311', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2120', NULL, NULL, 'a6182f1c-43eb-42f3-b468-c60f8f083667', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1516', NULL, NULL, '8a01333d-3600-4e73-9425-e846f616e17f', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2609', NULL, NULL, '8fd6f122-52ca-432e-a5e5-8d65d64db77e', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0413', NULL, NULL, 'be84bd4d-8359-458b-a455-64ff06681812', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2420', NULL, NULL, '3d495d3b-a2a6-4466-9a97-fd32be84f752', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0292', NULL, NULL, '9466a9d5-acba-4b9a-9fec-9e5baad752c8', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1517', NULL, NULL, '9f8f4316-a517-4cae-a55a-129e00eb2df1', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1480', NULL, NULL, '5fbcef11-c5ba-4748-b38d-084d32f62957', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0843', NULL, NULL, '10a1c6d1-6ee3-4c7f-a5c6-0ef8746320e1', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1702', NULL, NULL, 'fa916ddf-efcc-4696-a0c1-6ecee77ea091', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '3127', NULL, NULL, 'b22dc4bf-dea1-40fe-97e9-f8ad03dc9d1b', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1486', NULL, NULL, '3bea3799-2b95-40e9-af3a-3312ab4e9399', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '1527', NULL, NULL, '70ad388c-1995-4a98-a0e6-c26e90a49771', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2596', NULL, NULL, '7a7f127e-da22-4617-bcce-4005916d7aaf', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '0000', NULL, NULL, '28b1f34b-6fe8-4865-9963-65c0ceb4a5d5', '2023-09-15 12:11:06.014644+00', NULL); +INSERT INTO contribution.answers (question_id, agreement_id, "content", content_type, id, updated_at, content_service_public_cdtn_id) VALUES ('f2112d9a-8229-4693-9e26-f71ea6d372e6', '2148', NULL, NULL, 'e8acf9ea-b0bb-465d-8ffc-b7a90de37051', '2023-09-15 12:11:06.014644+00', NULL); + +delete from contribution.questions +where "order" = 5;