Project

General

Profile

« Previous | Next » 

Revision 5988

sql.py: add_pkey_or_index(): Use new add_pkey_index()

View differences:

lib/sql.py
1361 1361
    try: add_pkey(db, table, cols, recover)
1362 1362
    except DuplicateKeyException, e:
1363 1363
        if warn: warnings.warn(UserWarning(exc.str_(e)))
1364
        add_index(db, pkey_col(db, table), table)
1364
        add_pkey_index(db, table)
1365 1365

  
1366 1366
already_indexed = object() # tells add_indexes() the pkey has already been added
1367 1367

  

Also available in: Unified diff