first com2
This commit is contained in:
32
alembic/versions/756210f564a5_ticket_thread_id_nullable.py
Normal file
32
alembic/versions/756210f564a5_ticket_thread_id_nullable.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""ticket.thread_id -> nullable.
|
||||
|
||||
Revision ID: 756210f564a5
|
||||
Revises: d872dba3da66
|
||||
Create Date: 2026-04-06 21:43:17.136851
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = "756210f564a5"
|
||||
down_revision: Union[str, Sequence[str], None] = "d872dba3da66"
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""Upgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column("tickets", "thread_id", existing_type=sa.BIGINT(), nullable=True)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column("tickets", "thread_id", existing_type=sa.BIGINT(), nullable=False)
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user