forked from 0x2620/pandora
new documents section
This commit is contained in:
parent
3fcbd59525
commit
e1f35b1ec8
74 changed files with 6737 additions and 631 deletions
|
|
@ -34,11 +34,13 @@ class Command(BaseCommand):
|
|||
|
||||
if settings.DB_GIN_TRGM:
|
||||
import entity.models
|
||||
import document.models
|
||||
for table, column in (
|
||||
(models.ItemFind._meta.db_table, 'value'), # Item Find
|
||||
(models.Clip._meta.db_table, 'findvalue'), # Clip Find
|
||||
(models.Annotation._meta.db_table, 'findvalue'), # Annotation Find
|
||||
(entity.models.Find._meta.db_table, 'value'), # Entity Find
|
||||
(document.models.Find._meta.db_table, 'value'), # Document Find
|
||||
):
|
||||
cursor = connection.cursor()
|
||||
indexes = connection.introspection.get_indexes(cursor, table)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue