#31393: Support SQL comment with help_text -> comment
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
KimSoungRyoul |
Type: New | Status: assigned
feature |
Component: | Version: master
Migrations |
Severity: Normal | Keywords: COMMENT help_text
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
why don't you support SQL COMMENT ?
help_text is useful for Developer
**BUT**
**DBA can not understand Django Models**
They want to see help_text with SQL not Python
This Issue causes a loss of communication costs between Developer to DBA
== **here is a solution**
== AS IS
{{{
class AModel(models.Model):
a_field = models.CharField(help_text="this is help text",
max_length=32, null=False)
class Meta:
db_table_comment =" this is comment"
}}}
-> python manage.py makemigrations
-> python manage.py migrate
Executed SQL (example Mysql)
{{{
create table a_model
(
a_field varchar(32) not null COMMENT 'this is help text'
) comment 'this is doc string';
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31393>
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/056.17cf9457b95897bceddb316ecfe3359c%40djangoproject.com.