#NEWLINE# def upgrade( migrate_engine ) : #NEWLINE# #INDENT# meta = MetaData ( ) #NEWLINE# meta . bind = migrate_engine #NEWLINE# reservations = Table ( 'reservations' , meta , autoload = True ) #NEWLINE# if _get_deleted_expire_index ( reservations ) : #NEWLINE# #INDENT# LOG . info ( _LI ( 'Skipped adding reservations_deleted_expire_idx because an equivalent index already exists.' ) ) #NEWLINE# return #NEWLINE# #UNINDENT# index = Index ( 'reservations_deleted_expire_idx' , meta . c . deleted , reservations . c . expire ) #NEWLINE# index . create ( migrate_engine )