24 lines
527 B
Python
24 lines
527 B
Python
"""add gallery feed updated index
|
|||
|
|
|
||
|
|
Revision ID: 0010_gallery_feed_indexes
|
||
|
|
Revises: 0009_web_admin_hardening
|
||
|
|
Create Date: 2026-06-14
|
||
|
|
"""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from alembic import op
|
||
|
|
|
||
|
|
|
||
|
|
revision = "0010_gallery_feed_indexes"
|
||
|
|
down_revision = "0009_web_admin_hardening"
|
||
|
|
branch_labels = None
|
||
|
|
depends_on = None
|
||
|
|
|
||
|
|
|
||
|
|
def upgrade() -> None:
|
||
|
|
op.create_index("ix_artworks_user_updated", "artworks", ["user_id", "updated_at"])
|
||
|
|
|
||
|
|
|
||
|
|
def downgrade() -> None:
|
||
|
|
op.drop_index("ix_artworks_user_updated", table_name="artworks")
|