forked from codeforamerica/cfapi
-
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.
Add lat/lon information to Event object
This adds a lat/lon column to Event objects that gets filled in based off of what's in the Meetup response. This will help us display a map on the brigade website without having to pull in geocoding config.
- Loading branch information
Showing
4 changed files
with
36 additions
and
2 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,25 @@ | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
"""Add Venue To Event | ||
Revision ID: a5abdf9487c | ||
Revises: 578ce9f8d1 | ||
Create Date: 2018-01-12 16:43:53.741499 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a5abdf9487c' | ||
down_revision = '578ce9f8d1' | ||
|
||
|
||
def upgrade(): | ||
op.add_column('event', sa.Column('lat', sa.types.DECIMAL(20, 17))) | ||
op.add_column('event', sa.Column('lon', sa.types.DECIMAL(20, 17))) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('event', 'lat') | ||
op.drop_column('event', 'lon') |
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