Files
letta-server/alembic/versions/c3b1da3d1157_add_sender_id_to_message.py
Kian Jones b8e9a80d93 merge this (#4759)
* wait I forgot to comit locally

* cp the entire core directory and then rm the .git subdir
2025-09-17 15:47:40 -07:00

41 lines
1.0 KiB
Python

"""add sender id to message
Revision ID: c3b1da3d1157
Revises: 0ceb975e0063
Create Date: 2025-04-14 08:53:14.548061
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
from letta.settings import settings
# revision identifiers, used by Alembic.
revision: str = "c3b1da3d1157"
down_revision: Union[str, None] = "0ceb975e0063"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# Skip this migration for SQLite
if not settings.letta_pg_uri_no_default:
return
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("messages", sa.Column("sender_id", sa.String(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# Skip this migration for SQLite
if not settings.letta_pg_uri_no_default:
return
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("messages", "sender_id")
# ### end Alembic commands ###