diff --git a/ereuse_devicehub/modules/oidc/migrations/versions/96092022dadb_code2roles.py b/ereuse_devicehub/modules/oidc/migrations/versions/96092022dadb_code2roles.py index 5f05b771..4a3ddcb6 100644 --- a/ereuse_devicehub/modules/oidc/migrations/versions/96092022dadb_code2roles.py +++ b/ereuse_devicehub/modules/oidc/migrations/versions/96092022dadb_code2roles.py @@ -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;")