-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ferdinandl007/onyx
- Loading branch information
Showing
162 changed files
with
3,868 additions
and
1,659 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
32 changes: 32 additions & 0 deletions
32
backend/alembic/versions/2cdeff6d8c93_set_built_in_to_default.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,32 @@ | ||
"""set built in to default | ||
Revision ID: 2cdeff6d8c93 | ||
Revises: f5437cc136c5 | ||
Create Date: 2025-02-11 14:57:51.308775 | ||
""" | ||
from alembic import op | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "2cdeff6d8c93" | ||
down_revision = "f5437cc136c5" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# Prior to this migration / point in the codebase history, | ||
# built in personas were implicitly treated as default personas (with no option to change this) | ||
# This migration makes that explicit | ||
op.execute( | ||
""" | ||
UPDATE persona | ||
SET is_default_persona = TRUE | ||
WHERE builtin_persona = TRUE | ||
""" | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
pass |
40 changes: 40 additions & 0 deletions
40
backend/alembic/versions/f39c5794c10a_add_background_errors_table.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,40 @@ | ||
"""Add background errors table | ||
Revision ID: f39c5794c10a | ||
Revises: 2cdeff6d8c93 | ||
Create Date: 2025-02-12 17:11:14.527876 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "f39c5794c10a" | ||
down_revision = "2cdeff6d8c93" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.create_table( | ||
"background_error", | ||
sa.Column("id", sa.Integer(), nullable=False), | ||
sa.Column("message", sa.String(), nullable=False), | ||
sa.Column( | ||
"time_created", | ||
sa.DateTime(timezone=True), | ||
server_default=sa.text("now()"), | ||
nullable=False, | ||
), | ||
sa.Column("cc_pair_id", sa.Integer(), nullable=True), | ||
sa.PrimaryKeyConstraint("id"), | ||
sa.ForeignKeyConstraint( | ||
["cc_pair_id"], | ||
["connector_credential_pair.id"], | ||
ondelete="CASCADE", | ||
), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_table("background_error") |
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
Oops, something went wrong.