-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cf83de
commit 2a5b0b1
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
workbench-service/migrations/versions/2024_10_30_231536_039bec8edc33_index_message_type.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 @@ | ||
"""index message_type | ||
Revision ID: 039bec8edc33 | ||
Revises: b29524775484 | ||
Create Date: 2024-10-30 23:15:36.240812 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "039bec8edc33" | ||
down_revision: Union[str, None] = "b29524775484" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.create_index(op.f("ix_conversationmessage_message_type"), "conversationmessage", ["message_type"], unique=False) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_index(op.f("ix_conversationmessage_message_type"), table_name="conversationmessage") |
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