Opened 2 months ago

Closed 6 weeks ago

Last modified 6 weeks ago

#36735 closed New feature (fixed)

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: Ready for checkin
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 (9)

comment:1 by Lily, 2 months ago

Owner: set to Lily
Status: newassigned

comment:2 by Jacob Walls, 2 months ago

Triage Stage: UnreviewedAccepted

comment:3 by Paolo Melchiorre, 2 months ago

Cc: Paolo Melchiorre added

comment:4 by Lily, 2 months ago

Has patch: set

comment:5 by Jacob Walls, 6 weeks ago

Patch needs improvement: set

comment:6 by Lily, 6 weeks ago

Patch needs improvement: unset

comment:7 by Jacob Walls, 6 weeks ago

Triage Stage: AcceptedReady for checkin

comment:8 by Jacob Walls <jacobtylerwalls@…>, 6 weeks ago

Resolution: fixed
Status: assignedclosed

In accceec:

Fixed #36735 -- Added UUID4 and UUID7 database functions.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@…>

comment:9 by Jacob Walls <jacobtylerwalls@…>, 6 weeks ago

In e95468ed:

Refs #36735 -- Supported shift parameter for UUID7 on PostgreSQL.

Note: See TracTickets for help on using tickets.
Back to Top