Changeset 8206 for mauRepo


Ignore:
Timestamp:
02/04/12 16:03:08 (8 years ago)
Author:
mnagni
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/molesSessionMiddleware.py

    r8205 r8206  
    2929 
    3030            # This indexes the tsvector column 
    31             db_manager._engine.execute("create index md_identifier_code_search_index on md_identifier using gin(code_search_vector)")             
     31            db_manager._engine.execute("create index md_identifier_code_search_index on md_identifier using gin(code_search_vector)") 
     32 
     33            # This sets up the trigger that keeps the tsvector column up to date. 
     34            db_manager._engine.execute("create trigger md_identifier_code_search_update before update or insert on md_identifier \ 
     35                for each row execute procedure tsvector_update_trigger('code_search_vector', 'pg_catalog.english', 'code')")                         
    3236        except Exception as e: 
    3337            pass 
    3438 
    35         # This sets up the trigger that keeps the tsvector column up to date. 
    36         db_manager._engine.execute("create trigger md_identifier_code_search_update before update or insert on md_identifier \ 
    37             for each row execute procedure tsvector_update_trigger('code_search_vector', 'pg_catalog.english', 'code')") 
     39 
    3840 
    3941     
Note: See TracChangeset for help on using the changeset viewer.