29 lines
744 B
Python
29 lines
744 B
Python
"""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 ###
|