cubicweb #6171521 [migration/sqlserver] crash on sync_schema [validation pending]

>>> sync_schema_props_perms('CWWorker')
sql: 'ALTER TABLE cw_CWWorker DROP CONSTRAINT cw_cwworker_cw_pid_key'
args: None
dbms message: '42000'
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\src\confs\pagode\cubicweb\server\migractions.py", line 1171, in cmd_sync_schema_props_perms
self.commit()
File "C:\src\confs\pagode\cubicweb\server\migractions.py", line 291, in commit
self.cnx.commit(free_cnxset=False)
File "C:\src\confs\pagode\cubicweb\repoapi.py", line 129, in check_open
return func(clt_cnx, *args, **kwargs)
File "C:\src\confs\pagode\cubicweb\repoapi.py", line 224, in commit
return self._cnx.commit(*args, **kwargs)
File "C:\src\confs\pagode\cubicweb\server\session.py", line 381, in check_open
return func(cnx, *args, **kwargs)
File "C:\src\confs\pagode\cubicweb\server\session.py", line 1106, in commit
operation.handle_event('precommit_event')
File "C:\src\confs\pagode\cubicweb\server\hook.py", line 770, in handle_event
getattr(self, event)()
File "C:\src\confs\pagode\cubicweb\hooks\syncschema.py", line 703, in precommit_event
syssource.update_rdef_unique(cnx, rdef)
File "C:\src\confs\pagode\cubicweb\server\sources\native.py", line 808, in update_rdef_unique
self.drop_index(cnx, table, column, unique=True)
File "C:\src\confs\pagode\cubicweb\server\sources\native.py", line 816, in drop_index
self.dbhelper.drop_index(cursor, table, column, unique)
File "C:\src\confs\pagode\logilab\database\__init__.py", line 1044, in drop_index
cursor.execute(self.sql_drop_index(table, column, unique))
File "C:\src\confs\pagode\cubicweb\server\sources\native.py", line 80, in execute
self.cu.execute(str(query), args)
File "C:\src\confs\pagode\logilab\database\sqlserver.py", line 116, in execute
self._cursor.execute(sql)
ProgrammingError: ('42000', "[42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]'cw_cwworker_cw_pid_key' n'es
t pas une contrainte. (3728) (SQLExecDirectW); [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]Impossible
de supprimer la contrainte. Consultez les erreurs pr\xe9c\xe9dentes. (3727)")

priorityimportant
typebug
done in3.19.13
load0.000
load left0.000
closed by<not specified>