author | Julien Cristau <julien.cristau@logilab.fr> |
Fri, 16 Jan 2015 12:43:32 +0100 | |
changeset 10208 | 249126034c0e |
child 10209 | 4c64a41c0a1d |
permissions | -rw-r--r-- |
10208
249126034c0e
Add unique index on entities.extid
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
1 |
|
249126034c0e
Add unique index on entities.extid
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
2 |
helper = repo.system_source.dbhelper |
249126034c0e
Add unique index on entities.extid
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
3 |
sql('DROP INDEX entities_extid_idx') |
249126034c0e
Add unique index on entities.extid
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
4 |
sql(helper.sql_create_index('entities', 'extid', True)) |
249126034c0e
Add unique index on entities.extid
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
5 |
commit() |