cubicweb #2465393 crash while sync_schema_props_perms attempts to DROP a non-existant index [validation pending]

>>> sync_schema_props_perms()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/auc/confs/pegase_conf/cubicweb/server/migractions.py", line 1176, in cmd_sync_schema_props_perms
self.commit()
File "/home/auc/confs/pegase_conf/cubicweb/server/migractions.py", line 315, in commit
self._cnx.commit()
File "/home/auc/confs/pegase_conf/cubicweb/dbapi.py", line 522, in decorator
return func(self, *args, **kwargs)
File "/home/auc/confs/pegase_conf/cubicweb/dbapi.py", line 741, in commit
return self._repo.commit(self.sessionid, **self._txid())
File "/home/auc/confs/pegase_conf/cubicweb/server/repository.py", line 847, in commit
return session.commit()
File "/home/auc/confs/pegase_conf/cubicweb/server/session.py", line 986, in commit
operation.handle_event('precommit_event')
File "/home/auc/confs/pegase_conf/cubicweb/server/hook.py", line 768, in handle_event
getattr(self, event)()
File "/home/auc/confs/pegase_conf/cubicweb/hooks/syncschema.py", line 758, in precommit_event
session.system_sql(sql)
File "/home/auc/confs/pegase_conf/cubicweb/server/session.py", line 456, in system_sql
return source.doexec(self, sql, args, rollback=rollback_on_failure)
File "/home/auc/confs/pegase_conf/cubicweb/server/sources/native.py", line 743, in doexec
cursor.execute(str(query), args)
ProgrammingError: index "unique_cw_tdlinearizedfunctionsegment_cw_td_defines_function_id" does not exist

prioritynormal
typebug
done in3.15.4
load0.100
load left0.000
closed by#73469aa94afe [hooks/syncschema] do not crash on DROP of an already dropped index/... (closes #2465393)