﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31393	Support table SQL comments.	KimSoungRyoul	nobody	"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';
}}}


 "	New feature	closed	Database layer (models, ORM)	dev	Normal	duplicate	COMMENT help_text		Unreviewed	0	0	0	0	0	0
