﻿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
29812	AlterUniqueTogether creates invalid SQL for app with hyphen in name	Carl Johnson	nobody	"Background:

I am using Django 2.1.1 with Postgresql. I attempted to create a unique_together field for an app with the name ""mencken-admin"". 

Result:

I got a traceback ending with


{{{
django.db.utils.ProgrammingError: syntax error at or near ""-""
LINE 1: ...LE ""mencken-admin_sitepage"" ADD CONSTRAINT mencken-admin_sit...

}}}

And then a little carrot (can't type it in the bug system) indicating that the error was the hyphen in mencken-admin_sitepage. 

I believe the problem is that the constraint name needs to be escaped somehow."	Bug	closed	Migrations	2.1	Normal	duplicate	migrations SQL		Unreviewed	0	0	0	0	0	0
