Fixed #26709 -- Added class-based indexes.

Added the AddIndex and RemoveIndex operations to use them in migrations.

Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
This commit is contained in:
Akshesh 2016-06-25 22:02:56 +05:30 committed by Tim Graham
parent c962b9104a
commit 156e2d59cf
18 changed files with 473 additions and 20 deletions

View file

@ -0,0 +1,7 @@
from django.db import models
class Book(models.Model):
title = models.CharField(max_length=50)
author = models.CharField(max_length=50)
pages = models.IntegerField(db_column='page_count')