Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
50 lines
2.2 KiB
Python
50 lines
2.2 KiB
Python
"""template_instances: instantiation analytics
|
|
|
|
Revision ID: aeeedc3eaa89
|
|
Revises: d55d6c63d921
|
|
Create Date: 2026-08-18 12:22:55.706524+00:00
|
|
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = 'aeeedc3eaa89'
|
|
down_revision: Union[str, None] = 'd55d6c63d921'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('template_instances',
|
|
sa.Column('id', sa.String(length=32), nullable=False),
|
|
sa.Column('user_id', sa.String(length=32), nullable=False),
|
|
sa.Column('template_slug', sa.String(length=80), nullable=False),
|
|
sa.Column('template_version', sa.String(length=20), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('inputs', sa.JSON(), nullable=False),
|
|
sa.Column('duration_s', sa.Integer(), server_default=sa.text('0'), nullable=False),
|
|
sa.Column('reel_job_id', sa.String(length=64), server_default=sa.text("('')"), nullable=False),
|
|
sa.Column('created_at', sa.DateTime(timezone=True), server_default=sa.text('(CURRENT_TIMESTAMP)'), nullable=False),
|
|
sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
op.create_index(op.f('ix_template_instances_created_at'), 'template_instances', ['created_at'], unique=False)
|
|
op.create_index(op.f('ix_template_instances_template_slug'), 'template_instances', ['template_slug'], unique=False)
|
|
op.create_index(op.f('ix_template_instances_user_id'), 'template_instances', ['user_id'], unique=False)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_index(op.f('ix_template_instances_user_id'), table_name='template_instances')
|
|
op.drop_index(op.f('ix_template_instances_template_slug'), table_name='template_instances')
|
|
op.drop_index(op.f('ix_template_instances_created_at'), table_name='template_instances')
|
|
op.drop_table('template_instances')
|
|
# ### end Alembic commands ###
|