d11bbd8ae6d8_geo.py 904 B

1234567891011121314151617181920212223242526272829303132333435
  1. """geo
  2. Revision ID: d11bbd8ae6d8
  3. Revises:
  4. Create Date: 2023-02-27 17:29:51.928140
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = 'd11bbd8ae6d8'
  10. down_revision = None
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. op.add_column('object', sa.Column('longitude', sa.String(length=200), nullable=True))
  16. op.add_column('object', sa.Column('latitude', sa.String(length=200), nullable=True))
  17. op.add_column('object', sa.Column('object_name', sa.String(length=200), nullable=True))
  18. # ### end Alembic commands ###
  19. def downgrade():
  20. # ### commands auto generated by Alembic - please adjust! ###
  21. op.drop_column('object', 'object_name')
  22. op.drop_column('object', 'latitude')
  23. op.drop_column('object', 'longitude')
  24. # ### end Alembic commands ###