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 = "0b496eae90de"
@@ -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.create_table(
"files_agents",
@@ -48,6 +53,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_index("ix_files_agents_file_id_agent_id", table_name="files_agents")
op.drop_table("files_agents")