Initial commit: Pixel AI comic/video creation platform
- FastAPI backend with SQLModel, Alembic migrations, AgentScope agents - Next.js 15 frontend with React 19, Tailwind, Zustand, React Flow - Multi-provider AI system (DashScope, Kling, MiniMax, Volcengine, OpenAI, etc.) - All HTTP clients migrated from sync requests to async httpx - Admin-managed API keys via environment variables - SSRF vulnerability fixed in ensure_url()
This commit is contained in:
30
backend/alembic/versions/add_progress_tracking.py
Normal file
30
backend/alembic/versions/add_progress_tracking.py
Normal file
@@ -0,0 +1,30 @@
|
||||
"""add progress tracking fields
|
||||
|
||||
Revision ID: add_progress_tracking
|
||||
Revises: add_task_mgmt_fields
|
||||
Create Date: 2026-01-16 15:00:00.000000
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import sqlite
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'add_progress_tracking'
|
||||
down_revision = 'add_task_mgmt_fields'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# Add progress and error columns to projects table
|
||||
with op.batch_alter_table('projects', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('progress', sa.JSON(), nullable=True))
|
||||
batch_op.add_column(sa.Column('error', sa.JSON(), nullable=True))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# Remove progress and error columns from projects table
|
||||
with op.batch_alter_table('projects', schema=None) as batch_op:
|
||||
batch_op.drop_column('error')
|
||||
batch_op.drop_column('progress')
|
||||
Reference in New Issue
Block a user