Skip to content

Commit

Permalink
adding comment pk migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimovchik committed Dec 11, 2024
1 parent 9404aba commit e972fde
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions migrations/versions/5cf69f1026d9_fixing_comments_pk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""fixing comments pk
Revision ID: 5cf69f1026d9
Revises: 933db669e7ef
Create Date: 2024-12-11 21:58:13.081083
"""

from alembic import op


# revision identifiers, used by Alembic.
revision = '5cf69f1026d9'
down_revision = '933db669e7ef'
branch_labels = None
depends_on = None


def upgrade():
op.create_primary_key('pk_comment', 'comment', ['uuid'])


def downgrade():
op.drop_constraint('pk_comment', 'comment', type_='primary')

0 comments on commit e972fde

Please sign in to comment.