forked from Skyvern-AI/skyvern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created_at index for steps table (Skyvern-AI#1301)
- Loading branch information
1 parent
76f1712
commit 04d5685
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
alembic/versions/2024_12_02_1609-db41106b9f1a_steps_db_change_add_created_at_index.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,29 @@ | ||
"""steps DB change: add created_at index | ||
Revision ID: db41106b9f1a | ||
Revises: a5feab7712fe | ||
Create Date: 2024-12-02 16:09:57.679626+00:00 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "db41106b9f1a" | ||
down_revision: Union[str, None] = "a5feab7712fe" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_index("created_at_org_index", "steps", ["created_at", "organization_id"], unique=False) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_index("created_at_org_index", table_name="steps") | ||
# ### end Alembic commands ### |
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