-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add street numeric indexes to involved_markers_hebrew and two additio…
…nal small imrovements
- Loading branch information
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
alembic/versions/e962054e4422_add_street_numeric_indexes_to_involved_.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,28 @@ | ||
"""add street numeric indexes to involved heberw | ||
Revision ID: e962054e4422 | ||
Revises: mn9px8cacn24 | ||
Create Date: 2024-10-20 08:24:08.746964 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'e962054e4422' | ||
down_revision = 'mn9px8cacn24' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
# import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.create_index('ix_involved_markers_hebrew_street1', | ||
'involved_markers_hebrew', ['street1'], unique=False) | ||
op.create_index('ix_involved_markers_hebrew_street2', | ||
'involved_markers_hebrew', ['street2'], unique=False) | ||
|
||
|
||
def downgrade(): | ||
op.drop_index('ix_involved_markers_hebrew_street1', 'involved_markers_hebrew') | ||
op.drop_index('ix_involved_markers_hebrew_street2', 'involved_markers_hebrew') |
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