Fix seq generators for enum tables in postgres
This attempts to insert a temporary entry into each enum table until it succeeds. It re-synchronizes the postgres sequence generators with the max id of the table. Fixes #883 and #880
This commit is contained in:
parent
a2001afb1f
commit
30b0101584
22 changed files with 157 additions and 104 deletions
|
@ -17,7 +17,7 @@ import sqlalchemy as sa
|
|||
def upgrade(tables):
|
||||
op.bulk_insert(tables.loginservice,
|
||||
[
|
||||
{'id': 5, 'name':'jwtauthn'},
|
||||
{'name':'jwtauthn'},
|
||||
])
|
||||
|
||||
|
||||
|
|
Reference in a new issue