misc/migration/3.17.11_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 04 Feb 2014 15:06:25 +0100
changeset 9724 e45bf9baa7b7
parent 9463 d62e13eba033
permissions -rw-r--r--
Add a db-statement-timeout option for postgresql sources Use that new option to set the statement_timeout option when creating connections, except for maintenance operations (shell and upgrade). Closes #2547026

for table, column in [
        ('transactions', 'tx_time'),
        ('tx_entity_actions', 'tx_uuid'),
        ('tx_relation_actions', 'tx_uuid')]:
    repo.system_source.create_index(session, table, column)

commit()