-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2694 from data-for-change/dev
merge dev into master
- Loading branch information
Showing
18 changed files
with
573 additions
and
346 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"""add numeric indexes | ||
Revision ID: 97740b33407d | ||
Revises: 53d0b00fb750 | ||
Create Date: 2024-08-24 11:19:33.674396 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '97740b33407d' | ||
down_revision = '53d0b00fb750' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
# import sqlalchemy as sa | ||
|
||
|
||
# pylint: disable=E1101 | ||
def upgrade(): | ||
for table in ['markers', 'markers_hebrew']: | ||
for field in ['yishuv_symbol', 'street1', 'street2']: | ||
op.create_index(f'ix_{table}_{field}', table, [field], unique=False) | ||
for table in ['markers_hebrew']: | ||
for field in ['yishuv_name', 'street1_hebrew', 'street2_hebrew']: | ||
op.drop_index(f'ix_{table}_{field}', table_name=table) | ||
|
||
|
||
# pylint: disable=E1101 | ||
def downgrade(): | ||
for table in ['markers', 'markers_hebrew']: | ||
for field in ['yishuv_symbol', 'street1', 'street2']: | ||
op.drop_index(f'ix_{table}_{field}', table_name=table) | ||
for table in ['markers_hebrew']: | ||
for field in ['yishuv_name', 'street1_hebrew', 'street2_hebrew']: | ||
op.create_index(f'ix_{table}_{field}', table, [field], unique=False) |
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,31 @@ | ||
"""add house number | ||
Revision ID: mn9px8cacn24 | ||
Revises: 97740b33407d | ||
Create Date: 2024-06-16 15:05:30.522542 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'mn9px8cacn24' | ||
down_revision = '97740b33407d' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('involved_markers_hebrew', sa.Column('house_number', sa.Integer(), nullable=True)) | ||
op.add_column('vehicles_markers_hebrew', sa.Column('house_number', sa.Integer(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('vehicles_markers_hebrew', 'house_number') | ||
op.drop_column('involved_markers_hebrew', 'house_number') | ||
# ### 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
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.