-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/sqlite-vec' into sqlite-vec
- Loading branch information
Showing
19 changed files
with
555 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""add soft delete | ||
Revision ID: 8e4b4b8d1a88 | ||
Revises: 5c2f3eee5f90 | ||
Create Date: 2025-01-20 14:08:40.851647 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "8e4b4b8d1a88" | ||
down_revision: Union[str, None] = "5c2f3eee5f90" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.execute( | ||
""" | ||
ALTER TABLE workspaces | ||
ADD COLUMN deleted_at DATETIME DEFAULT NULL; | ||
""" | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.execute("ALTER TABLE workspaces DROP COLUMN deleted_at;") |
26 changes: 26 additions & 0 deletions
26
migrations/versions/a692c8b52308_add_workspace_system_prompt.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""add_workspace_system_prompt | ||
Revision ID: a692c8b52308 | ||
Revises: 5c2f3eee5f90 | ||
Create Date: 2025-01-17 16:33:58.464223 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "a692c8b52308" | ||
down_revision: Union[str, None] = "5c2f3eee5f90" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# Add column to workspaces table | ||
op.execute("ALTER TABLE workspaces ADD COLUMN system_prompt TEXT DEFAULT NULL;") | ||
|
||
|
||
def downgrade() -> None: | ||
op.execute("ALTER TABLE workspaces DROP COLUMN system_prompt;") |
23 changes: 23 additions & 0 deletions
23
migrations/versions/e6227073183d_merging_system_prompt_and_soft_deletes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"""merging system prompt and soft-deletes | ||
Revision ID: e6227073183d | ||
Revises: 8e4b4b8d1a88, a692c8b52308 | ||
Create Date: 2025-01-20 16:08:40.645298 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "e6227073183d" | ||
down_revision: Union[str, None] = ("8e4b4b8d1a88", "a692c8b52308") | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
pass | ||
|
||
|
||
def downgrade() -> None: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.