Update of history table fails to drop ID sequence
The migration from baa87cf1a343 fails to drop sequence for history table because the table has a default value set for the column id
(using the same sequence as the one of __id
).
This is because of this test which add the default value when updating a table which has already a column __id
.
This default value does not have any impact on the data because we always set a value for the column id
when inserting history. So I think the solution is to remove the default value before the IDENTITY migration.