fix primarykey
This commit is contained in:
parent
18600af272
commit
6c7395c26f
|
@ -43,6 +43,7 @@ def upgrade():
|
||||||
),
|
),
|
||||||
sa.Column('code', citext.CIText(), nullable=False),
|
sa.Column('code', citext.CIText(), nullable=False),
|
||||||
sa.Column('roles', citext.CIText(), nullable=False),
|
sa.Column('roles', citext.CIText(), nullable=False),
|
||||||
|
sa.PrimaryKeyConstraint('id'),
|
||||||
schema=f'{get_inv()}',
|
schema=f'{get_inv()}',
|
||||||
)
|
)
|
||||||
op.execute(f"CREATE SEQUENCE {get_inv()}.code_roles_seq;")
|
op.execute(f"CREATE SEQUENCE {get_inv()}.code_roles_seq;")
|
||||||
|
|
Reference in New Issue