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 = "341068089f14"
@@ -20,12 +21,20 @@ 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("block", sa.Column("preserve_on_migration", sa.Boolean(), 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("block", "preserve_on_migration")
# ### end Alembic commands ###