1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

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')