Skip to content

Commit

Permalink
change memberships_history pkey (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolyachevets authored Oct 21, 2024
1 parent c6e3692 commit 78dbf88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth-api/migrations/versions/2024_09_20_aa74003de9d8_.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"""

from alembic import op
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
Expand Down Expand Up @@ -147,7 +147,7 @@ def upgrade():
sa.Column("modified_by_id", sa.Integer(), autoincrement=False, nullable=True),
sa.Column("version", sa.Integer(), autoincrement=False, nullable=False),
sa.Column("changed", sa.DateTime(), nullable=True),
sa.PrimaryKeyConstraint("id", "version"),
sa.PrimaryKeyConstraint("id", "changed"),
sqlite_autoincrement=True,
)
with op.batch_alter_table("memberships_history", schema=None) as batch_op:
Expand Down

0 comments on commit 78dbf88

Please sign in to comment.