-
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.
Merge branch 'dev' into bug-2542-fix-newsflash-location-qualification…
…-wrong-id
- Loading branch information
Showing
43 changed files
with
1,085 additions
and
606 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
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
36 changes: 36 additions & 0 deletions
36
alembic/versions/7ea883c8a245_add_road_junction_km_table.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,36 @@ | ||
"""add suburban junction table | ||
Revision ID: 7ea883c8a245 | ||
Revises: 881e7b1dba8a | ||
Create Date: 2023-06-04 17:43:13.170728 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7ea883c8a245' | ||
down_revision = '881e7b1dba8a' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# noinspection PyUnresolvedReferences | ||
def upgrade(): | ||
op.create_table("road_junction_km", | ||
sa.Column('road', sa.Integer(), nullable=False), | ||
sa.Column('non_urban_intersection', sa.Integer(), nullable=False), | ||
sa.Column('km', sa.Float(), nullable=False), | ||
sa.PrimaryKeyConstraint('road', 'non_urban_intersection') | ||
) | ||
op.create_index(op.f('road_junction_km_idx'), | ||
"road_junction_km", | ||
['road', 'non_urban_intersection'], | ||
unique=True) | ||
|
||
|
||
# noinspection PyUnresolvedReferences | ||
def downgrade(): | ||
op.drop_index(op.f('road_junction_km_idx'), table_name="road_junction_km") | ||
op.drop_table("road_junction_km") |
32 changes: 32 additions & 0 deletions
32
alembic/versions/fe08b885a23f_add_non_urban_intersection_indexes.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,32 @@ | ||
"""add non_urban_intersection indexes | ||
Revision ID: fe08b885a23f | ||
Revises: 7ea883c8a245 | ||
Create Date: 2023-12-22 07:18:15.227413 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'fe08b885a23f' | ||
down_revision = '7ea883c8a245' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
tables = ["vehicles_markers_hebrew", "involved_markers_hebrew", "markers_hebrew"] | ||
|
||
|
||
def upgrade(): | ||
for table in tables: | ||
op.create_index(f'ix_{table}_non_urban_intersection', | ||
table, | ||
['non_urban_intersection'], unique=False | ||
) | ||
|
||
|
||
def downgrade(): | ||
for table in tables: | ||
op.drop_index(op.f(f'ix_{table}_non_urban_intersection'), table_name=table) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
"road1", | ||
"road2", | ||
"road_segment_name", | ||
"road_segment_id", | ||
], | ||
} | ||
|
||
|
Oops, something went wrong.