mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #30591 -- Fixed introspection of check and unique column constraints on MariaDB.
Unnamed unique and check columns constraints have the same name as a column. Ensure uniqueness by using custom names. Thanks Adnan Umer for the report.
This commit is contained in:
@@ -83,6 +83,7 @@ class Comment(models.Model):
|
||||
|
||||
class CheckConstraintModel(models.Model):
|
||||
up_votes = models.PositiveIntegerField()
|
||||
voting_number = models.PositiveIntegerField(unique=True)
|
||||
|
||||
class Meta:
|
||||
required_db_features = {
|
||||
|
||||
Reference in New Issue
Block a user