first commit
This commit is contained in:
commit
34ea15a54d
246 changed files with 18660 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
"""edition ticket urls and meta description
|
||||
|
||||
Revision ID: 20260404_0001
|
||||
Revises:
|
||||
Create Date: 2026-04-04
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision: str = "20260404_0001"
|
||||
down_revision: Union[str, None] = None
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.execute("ALTER TABLE event_editions ADD COLUMN IF NOT EXISTS bookmyshow_url VARCHAR(512)")
|
||||
op.execute("ALTER TABLE event_editions ADD COLUMN IF NOT EXISTS district_url VARCHAR(512)")
|
||||
op.execute("ALTER TABLE event_editions ADD COLUMN IF NOT EXISTS instagram_url VARCHAR(512)")
|
||||
op.execute("ALTER TABLE event_editions ADD COLUMN IF NOT EXISTS meta_description VARCHAR(320)")
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column("event_editions", "meta_description")
|
||||
op.drop_column("event_editions", "instagram_url")
|
||||
op.drop_column("event_editions", "district_url")
|
||||
op.drop_column("event_editions", "bookmyshow_url")
|
||||
Loading…
Add table
Add a link
Reference in a new issue