Opened 23 months ago

Closed 23 months ago

Last modified 23 months ago

#34238 closed New feature (duplicate)

Support computed `GENERATED ALWAYS` columns

Reported by: Jeremy Nauta Owned by: Jeremy Nauta
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: generated, always, computed, field
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jeremy Nauta)

Hi all, I would like to propose a way to add computed (i.e. GENERATED ALWAYS) database fields. This has been discussed in many different forms over the past several years:

The current database backend support for this feature has been thoroughly documented by Paulo here: https://groups.google.com/g/django-developers/c/9Mf7YqDA4bg/m/wb07E71oAAAJ.

Proposed implementation: https://github.com/django/django/pull/16417

Change History (5)

comment:1 by Jeremy Nauta, 23 months ago

Has patch: set
Owner: changed from nobody to Jeremy Nauta
Status: newassigned

comment:3 by Jeremy Nauta, 23 months ago

Description: modified (diff)

comment:4 by Mariusz Felisiak, 23 months ago

Resolution: duplicate
Status: assignedclosed

Adding a new duplicate of #31565 is not the way to move things forward. Please follow triaging guidelines with regards to wontfix tickets.

comment:5 by Jeremy Nauta, 23 months ago

Will be implemented via https://code.djangoproject.com/ticket/31300 instead

Version 0, edited 23 months ago by Jeremy Nauta (next)
Note: See TracTickets for help on using tickets.
Back to Top