Opened 3 weeks ago
Last modified 2 weeks 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: | Paolo Melchiorre | Triage Stage: | Accepted |
| Has patch: | yes | 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.
Change History (4)
comment:1 by , 3 weeks ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 3 weeks ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 3 weeks ago
| Cc: | added |
|---|
comment:4 by , 2 weeks ago
| Has patch: | set |
|---|
Note:
See TracTickets
for help on using tickets.