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.
* status: assigned => closed
* resolution: => duplicate
* component: Migrations => Database layer (models, ORM)
Comment:
Duplicate of #18468.
--
Ticket URL: <https://code.djangoproject.com/ticket/31393#comment:1>