From 6c7395c26fc10b0000e8c004d4f52b42c15da165 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 13 Dec 2023 18:49:52 +0100 Subject: [PATCH] fix primarykey --- .../modules/oidc/migrations/versions/96092022dadb_code2roles.py | 1 + 1 file changed, 1 insertion(+) 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;")