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:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							c58755d875
						
					
				
				
					commit
					0e3a80fa68
				
			| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user