"""spy_estimates Revision ID: 6b246f7d3a50 Revises: b7e2d45d9be5 Create Date: 2018-12-14 00:02:34.672145 """ # revision identifiers, used by Alembic. revision = '6b246f7d3a50' down_revision = 'b7e2d45d9be5' 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.create_table('spy_track_stream_estimates', sa.Column('spyid', sa.String(), nullable=False), sa.Column('as_of', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP'), nullable=False), sa.Column('streams', sa.BigInteger(), autoincrement=False, nullable=False), sa.Column('input_data', postgresql.JSONB(none_as_null=True), nullable=False), sa.ForeignKeyConstraint(['spyid'], ['spy_tracks.spyid'], ), sa.PrimaryKeyConstraint('spyid') ) ### end Alembic commands ### def downgrade(): ### commands auto generated by Alembic - please adjust! ### op.drop_table('spy_track_stream_estimates') ### end Alembic commands ###