Opened 106 minutes ago
Last modified 90 minutes ago
#36735 assigned New feature
Add UUID4 and UUID7 database functions
| Reported by: | Lily | Owned by: | Lily |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | uuid |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
As discussed in https://github.com/django/new-features/issues/85, multiple databases (postgres, mariadb, oracle) have support for generating uuid4 and uuid7 values and it seems likely that other databases will follow. They are also popular choices for database primary keys, and together with db_default this will make it easy to use from Django.
django.contrib.postgres also has a RandomUUID function which supports uuid4. This can be deprecated and removed.
Note:
See TracTickets
for help on using tickets.