forked from 0x2620/pandora
fix sqlfindindex
This commit is contained in:
parent
a869c7a89a
commit
e407db4605
1 changed files with 0 additions and 1 deletions
|
@ -39,7 +39,6 @@ class Command(BaseCommand):
|
||||||
):
|
):
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
indexes = connection.introspection.get_indexes(cursor, table_name)
|
indexes = connection.introspection.get_indexes(cursor, table_name)
|
||||||
name = 'value'
|
|
||||||
if name not in indexes:
|
if name not in indexes:
|
||||||
create_table("%s_%s_idx"%(table_name, name), table_name, name)
|
create_table("%s_%s_idx"%(table_name, name), table_name, name)
|
||||||
transaction.commit_unless_managed()
|
transaction.commit_unless_managed()
|
||||||
|
|
Loading…
Reference in a new issue