"""empty message Revision ID: da63ba1d58b1 Revises: 091deace5f08 Create Date: 2020-10-04 17:06:54.502012 """ from alembic import op import sqlalchemy as sa import sqlalchemy_utils from project import dbtypes # revision identifiers, used by Alembic. revision = "da63ba1d58b1" down_revision = "091deace5f08" branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### # op.drop_table('spatial_ref_sys') op.add_column( "image", sa.Column("copyright_text", sa.Unicode(length=255), nullable=True) ) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_column("image", "copyright_text") op.create_table( "spatial_ref_sys", sa.Column("srid", sa.INTEGER(), autoincrement=False, nullable=False), sa.Column( "auth_name", sa.VARCHAR(length=256), autoincrement=False, nullable=True ), sa.Column("auth_srid", sa.INTEGER(), autoincrement=False, nullable=True), sa.Column( "srtext", sa.VARCHAR(length=2048), autoincrement=False, nullable=True ), sa.Column( "proj4text", sa.VARCHAR(length=2048), autoincrement=False, nullable=True ), sa.CheckConstraint( "(srid > 0) AND (srid <= 998999)", name="spatial_ref_sys_srid_check" ), sa.PrimaryKeyConstraint("srid", name="spatial_ref_sys_pkey"), ) # ### end Alembic commands ###