1
0
mirror of https://github.com/django/django.git synced 2025-10-31 01:25:32 +00:00

[1.8.x] Fixed #24972 -- Fixed removing unique_together indexes on MySQL.

Backport of 65296b3be3 from master
This commit is contained in:
Adam Brenecki
2015-06-12 15:52:08 +09:30
committed by Tim Graham
parent c58755d875
commit 0e3a80fa68
4 changed files with 38 additions and 6 deletions

View File

@@ -80,6 +80,15 @@ class BookWithSlug(models.Model):
db_table = "schema_book"
class BookWithoutAuthor(models.Model):
title = models.CharField(max_length=100, db_index=True)
pub_date = models.DateTimeField()
class Meta:
apps = new_apps
db_table = "schema_book"
class IntegerPK(models.Model):
i = models.IntegerField(primary_key=True)
j = models.IntegerField(unique=True)