feat(sqlite): CI Tests for Alembic and SQLite (#3358)

Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
This commit is contained in:
Kian Jones
2025-07-17 18:04:13 -07:00
committed by GitHub
parent f670bd7619
commit 0cd8c830c9
109 changed files with 2539 additions and 138 deletions

View File

@@ -11,6 +11,7 @@ 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 = "60ed28ee7138"
@@ -20,6 +21,10 @@ 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("steps", sa.Column("project_id", sa.String(), nullable=True))
op.execute(
@@ -36,6 +41,10 @@ def upgrade() -> None:
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("steps", "project_id")
# ### end Alembic commands ###