From ace2f78a4d5ca9d47d8ec9ea0f11452fdb4998cc Mon Sep 17 00:00:00 2001 From: Yannick Ihmels Date: Sun, 20 Nov 2022 21:35:07 +0100 Subject: [PATCH] Use UUID v7 as default for new projects (#1145) Symfony 6.2 introduces support for UUID v7, which is to be preferred over UUID v6 [according to the draft RFC][1]: > Implementations SHOULD utilize UUID version 7 over UUID version 1 and > 6 if possible. In order not to change the UUID generation in existing projects, UUID v7 could be configured as default for new projects via this recipe. [1]: https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#section-5.2-2 --- symfony/framework-bundle/6.2/config/packages/uid.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 symfony/framework-bundle/6.2/config/packages/uid.yaml diff --git a/symfony/framework-bundle/6.2/config/packages/uid.yaml b/symfony/framework-bundle/6.2/config/packages/uid.yaml new file mode 100644 index 00000000..01520944 --- /dev/null +++ b/symfony/framework-bundle/6.2/config/packages/uid.yaml @@ -0,0 +1,4 @@ +framework: + uid: + default_uuid_version: 7 + time_based_uuid_version: 7