#18468: Add the ability to define comments in table / columns
-------------------------------------+-------------------------------------
Reporter: Marc Rechté | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Ivan Chernoff):
Replying to [comment:9 Tim Graham]:
> I guess the model field option could be called `db_column_comment`. I
closed #28407 (introspecting column comments) as a duplicate since that
should be implemented as part of this.
I think that we don't need new param, because `comment` for django admin
may be useful to store in database. But I can't decide on implementation,
can you give me an advice?
Postgres and oracle have a syntax like `comment on {table}.{column}` for
storing comments, so this needs to be done after table/column creation, so
there are two ways:
1. Add it to post migrate signal, as for content types. But I can
implement it as a third-party lib
2. Add this SQL after database creation in schema.py
Which way is better?
--
Ticket URL: <https://code.djangoproject.com/ticket/18468#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.863158b8e61123925e7f36f56165d90e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.