API & Client: use of calculated bounds from API to display map
This commit is contained in:
28
mpwo_api/migrations/versions/92adde6ac0d0_.py
Normal file
28
mpwo_api/migrations/versions/92adde6ac0d0_.py
Normal file
@ -0,0 +1,28 @@
|
||||
"""add 'bounds' column to 'Activity' table
|
||||
|
||||
Revision ID: 92adde6ac0d0
|
||||
Revises: dd73d23a7a3d
|
||||
Create Date: 2018-05-14 14:25:04.889189
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '92adde6ac0d0'
|
||||
down_revision = 'dd73d23a7a3d'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('activities', sa.Column('bounds', postgresql.ARRAY(sa.Float()), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('activities', 'bounds')
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user