cubicweb/server/checkintegrity.py
changeset 11757 e845746b4d3c
parent 11361 5a857bba1b79
child 11763 39df042f4ab4
equal deleted inserted replaced
11756:60fed6272771 11757:e845746b4d3c
   445     source = cnx.repo.system_source
   445     source = cnx.repo.system_source
   446     dbh = source.dbhelper
   446     dbh = source.dbhelper
   447     schema = cnx.repo.schema
   447     schema = cnx.repo.schema
   448     schema_indices = SYSTEM_INDICES.copy()
   448     schema_indices = SYSTEM_INDICES.copy()
   449     if source.dbdriver == 'postgres':
   449     if source.dbdriver == 'postgres':
   450         schema_indices.update({'appears_words_idx': ('appears', 'words'),
   450         schema_indices.update({'appears_words_idx': ('appears', 'words')})
   451                                'moved_entities_extid_key': ('moved_entities', 'extid')})
       
   452         index_filter = lambda idx: not (idx.startswith('pg_') or idx.endswith('_pkey'))
   451         index_filter = lambda idx: not (idx.startswith('pg_') or idx.endswith('_pkey'))
   453     else:
   452     else:
   454         schema_indices.update({'appears_uid': ('appears', 'uid'),
   453         schema_indices.update({'appears_uid': ('appears', 'uid'),
   455                                'appears_word_id': ('appears', 'word_id')})
   454                                'appears_word_id': ('appears', 'word_id')})
   456         index_filter = lambda idx: not idx.startswith('sqlite_')
   455         index_filter = lambda idx: not idx.startswith('sqlite_')