fix(patch): Skip name column from duplicate index check

This commit is contained in:
Suraj Shetty 2019-09-10 14:47:09 +05:30
parent b53a03e963
commit 62276dde48

View file

@ -19,6 +19,7 @@ def execute():
non_unique
FROM information_schema.STATISTICS
WHERE table_name=%s
AND column_name!='name'
AND non_unique=0
ORDER BY index_name;
""", table, as_dict=1)