Skip to content

Commit

Permalink
Squash #1897 - Add vaprofile id as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MackHalliday committed Aug 5, 2024
1 parent 0a6ae6a commit fa5b215
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions migrations/versions/0369a_va_profile_cache_fields.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
"""
Revision ID: 73ba076d31a5
Revision ID: bab2a5de15d8
Revises: 0369_va_profile_cache_fields
Create Date: 2024-08-05 13:51:38.281958
Create Date: 2024-08-05 15:10:01.963467
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

revision = '73ba076d31a5'
down_revision = '0369_va_profile_cache_fields'
revision = 'bab2a5de15d8'
down_revision = '0369a_va_profile_cache_fields'


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('va_profile_local_cache', 'va_profile_id',
existing_type=sa.INTEGER(),
type_=sa.BigInteger(),
existing_nullable=False)
op.alter_column('va_profile_local_cache', 'participant_id',
existing_type=sa.INTEGER(),
type_=sa.BigInteger(),
Expand All @@ -27,4 +32,8 @@ def downgrade():
existing_type=sa.BigInteger(),
type_=sa.INTEGER(),
existing_nullable=True)
op.alter_column('va_profile_local_cache', 'va_profile_id',
existing_type=sa.BigInteger(),
type_=sa.INTEGER(),
existing_nullable=False)
# ### end Alembic commands ###

0 comments on commit fa5b215

Please sign in to comment.