Some checks are pending
Build and Push Docker Images / changes (push) Waiting to run
Build and Push Docker Images / build-backend (push) Blocked by required conditions
Build and Push Docker Images / build-frontend (push) Blocked by required conditions
Build and Push Docker Images / build-admin-frontend (push) Blocked by required conditions
26 lines
603 B
Python
26 lines
603 B
Python
"""add pages column to stories
|
|
|
|
Revision ID: 0008_add_pages_to_stories
|
|
Revises: 0007_add_push_configs_and_events
|
|
Create Date: 2026-01-20
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '0008_add_pages_to_stories'
|
|
down_revision = '0007_add_push_configs_and_events'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column('stories', sa.Column('pages', postgresql.JSON(), nullable=True))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column('stories', 'pages')
|