#18468: Add the ability to define comments in table / columns
-------------------------------------+-------------------------------------
     Reporter:  Marc Rechté          |                    Owner:  Jared
                                     |  Chung
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Jared Chung):

 * needs_better_patch:  1 => 0
 * needs_tests:  1 => 0
 * needs_docs:  1 => 0


Old description:

> Hello,
>
> That would be nice if it was possible to include comment on table /
> columns at creation time with the syncdb manage.py option.
>
> ....
> ....
>
> **new proposal**  (kimsoungryoul : 2020.03.23)
>
> We will develop the code such as below
>
> {{{
>
> class AModel(models.Model):
>      aaa = model.CharField(help_text="i am help_text",
> db_column_comment="i am db_comment",~~~)
>
>      class Meta:
>            db_table = "a_model_example_name"
>            db_table_comment ="this is a_model comment ~~~~"
>
> }}}

New description:

 Database-level comments are valuable for database administrators, data
 analysts, data scientists, and others who are looking to consume data that
 is managed by Django. Most Django-supported databases also support table-
 level and column-level comments. This ticket would add functionality to
 Django to allow Django users to specify comments for syncdb manage.py to
 enter into the database.

 ....
 ....

 **new proposal**  (kimsoungryoul : 2020.03.23)

 We will develop the code such as below

 {{{

 class AModel(models.Model):
      aaa = model.CharField(help_text="i am help_text",
 db_column_comment="i am db_comment",~~~)

      class Meta:
            db_table = "a_model_example_name"
            db_table_comment ="this is a_model comment ~~~~"

 }}}

--

Comment:

 This patch is ready for review. It meets everything on the checklist. I'm
 updating the status so it shows up in `Patches Needing Review` on the
 Development Dashboard.

 If you would like additional information about some of the design and
 implementation decisions behind this patch, please refer to the Github
 Pull Request conversation at https://github.com/django/django/pull/14463

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18468#comment:34>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.72d8011d5dcaff9ffb93ac052d3654e5%40djangoproject.com.

Reply via email to