cubicweb/misc/migration/3.21.0_Any.py
changeset 11774 51c160677afe
parent 11757 e845746b4d3c
--- a/cubicweb/misc/migration/3.21.0_Any.py	Fri Sep 30 17:38:12 2016 +0200
+++ b/cubicweb/misc/migration/3.21.0_Any.py	Wed Oct 05 15:30:10 2016 +0200
@@ -127,12 +127,6 @@
 cu = session.cnxset.cu
 helper = repo.system_source.dbhelper
 
-helper.drop_index(cu, 'entities', 'extid', False)
-# don't use create_index because it doesn't work for columns that may be NULL
-# on sqlserver
-for query in helper.sqls_create_multicol_unique_index('entities', ['extid']):
-    cu.execute(query)
-
 sql('DELETE FROM entities WHERE eid < 0')
 commit()