- "backend/models.py" - "backend/schemas.py" - "backend/routers/creators.py" - "alembic/versions/023_add_personality_profile.py" GSD-Task: S06/T01
21 lines
503 B
Python
21 lines
503 B
Python
"""Add personality_profile JSONB column to creators.
|
|
|
|
Revision ID: 023_add_personality_profile
|
|
Revises: 022_add_creator_follows
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
|
|
revision = "023_add_personality_profile"
|
|
down_revision = "022_add_creator_follows"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.execute("ALTER TABLE creators ADD COLUMN IF NOT EXISTS personality_profile JSONB")
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.execute("ALTER TABLE creators DROP COLUMN IF EXISTS personality_profile")
|