fix primarykey

This commit is contained in:
Cayo Puigdefabregas 2023-12-13 18:49:52 +01:00
parent 18600af272
commit 6c7395c26f
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ def upgrade():
),
sa.Column('code', citext.CIText(), nullable=False),
sa.Column('roles', citext.CIText(), nullable=False),
sa.PrimaryKeyConstraint('id'),
schema=f'{get_inv()}',
)
op.execute(f"CREATE SEQUENCE {get_inv()}.code_roles_seq;")