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:
Silas Sewell 2015-11-16 13:45:00 -05:00
parent a2001afb1f
commit 30b0101584
22 changed files with 157 additions and 104 deletions

View file

@ -17,7 +17,7 @@ import sqlalchemy as sa
def upgrade(tables):
op.bulk_insert(tables.loginservice,
[
{'id': 5, 'name':'jwtauthn'},
{'name':'jwtauthn'},
])