-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Rename workspaces system-prompt to custom-instructions (#713)
* Rename workspaces system-prompt to custom-instructions Check the [Discord discussion](https://discord.com/channels/1184987096302239844/1317203257051054120/1331520854101856327) for further context. There was a poll conducted and we decided to carry on the renaming * Fix unit tests
1 parent
7c85486
commit c9d4737
Showing
11 changed files
with
99 additions
and
69 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
migrations/versions/2025_01_22_0956-90d5471db49a_rename_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,25 @@ | ||
"""rename system_prompt | ||
Revision ID: 90d5471db49a | ||
Revises: 4dec3e456c9e | ||
Create Date: 2025-01-22 09:56:21.520839+00:00 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "90d5471db49a" | ||
down_revision: Union[str, None] = "4dec3e456c9e" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.execute("ALTER TABLE workspaces RENAME COLUMN system_prompt TO custom_instructions;") | ||
|
||
|
||
def downgrade() -> None: | ||
op.execute("ALTER TABLE workspaces RENAME COLUMN custom_instructions TO system_prompt;") |
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
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.