﻿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
31351	Need warning when UniqueConstraint with condition is used but supports_partial_indexes is False	Matthijs Kooijman	Ichlasul Affan	"Databases that support supports_partial_indexes allow using a `UniqueConstraint` with a `condition` specified (implemented in #29547 and #30062). However, when such constraints are specified, but the database (e.g. Mysql/Mariadb or older versions of sqlite) does not support partial indexes, these constraints are silently ignored.

It would be better if this would give a warning, similar to the warning for `CheckConstraints` at https://github.com/django/django/blob/9358da704ea9ba55f22df912e47b54eb85d5c97e/django/db/models/base.py#L1838-L1862

I have observed this with 2.2.10, but looking at the code, this has not changed since then, so I'm setting version to master.

This is probably a fairly trivial change, but I'm not in the opportunity to provide a PR in the near future."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed		Ichlasul Affan Ian Foote	Ready for checkin	1	0	0	0	1	0
